openui icon indicating copy to clipboard operation
openui copied to clipboard

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

Open 195070811 opened this issue 1 year ago • 2 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:文件不能正常加载

195070811 avatar May 14 '24 10:05 195070811

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

vanpelt avatar May 15 '24 14:05 vanpelt

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

jwzx avatar May 17 '24 10:05 jwzx