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
巅峰赛中,打开商店页面会唤起浏览器,但浏览器有报错,无限Loading中 #265
Comments
报错浏览器版本: |
python 什么版本 运行
|
py -3.8 -c "import mimetypes; print(mimetypes.types_map.get('.js'))"显示“application/javascript” |
奇怪 那说明给的类型是正常的 你用 edge 测试下
|
嗯,Edge我也试过的,也是一样的结果。 |
难道是你把js的文件类型关联过纯文本编辑器? 等我我单独搞个写死的版本你测试下 |
我试了把index.html里面的引用强行改成type="text/javascript"是能识别的,但是因为是module,不能这么写,就很尴尬 |
测试一下这个版本 dceb0ec |
如果这个可以 那应该是系统设置的文件关联类型导致的 因为导入 python 的 http.server 库的时候会读取系统文件类型设置 |
这个版本运行example还是同样的报错_(:з」∠)_ |
可能是缓存 用 Ctrl+F5 强制刷新看看 |
v1.17.1 修复了 |
JS的错误显示试图获取的Javascript文件被服务器识别为text/plain类型:
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.(assets/index.ac25b9a9.js)
:8300/assets/vendor.1a7cc180.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.(assets/vendor.1a7cc180.js)
The text was updated successfully, but these errors were encountered: