wandb / openui

OpenUI let's you describe UI using your imagination, then see it rendered live.

Home Page:https://openui.fly.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

本地安装部署 启动访问页面显示空白

195070811 opened this issue · comments

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec. 提示这个文件不能正常加载 index-BTSM2UaV.js:1

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec. 提示vendor-QOAI5TVB.js:文件不能正常加载

Not sure what's happening, someone else suggested something similar was going on. Can you share more about what operating system you're using?

commented

You can import mimetypes in server.py,
Then add mimetypes. add_type ("application/JavaScript", ". js") in line 468 to solve the problem
image