本地安装部署 启动访问页面显示空白
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?
You can import mimetypes in server.py,
Then add mimetypes. add_type ("application/JavaScript", ". js") in line 468 to solve the problem