Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
195070811 opened this issue May 14, 2024 · 2 comments
Open

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

195070811 opened this issue May 14, 2024 · 2 comments

Comments

@195070811
Copy link

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:文件不能正常加载

@vanpelt
Copy link
Contributor

vanpelt commented May 15, 2024

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

@jwzx
Copy link

jwzx commented May 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants