修复JavaScript module script but the server responded with a MIME type of "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.

 

解决办法:

注册表 HKEY_CLASSES_ROOT 有个  .js 项    Content Type=text/plain

改成  Content Type=text/javascript

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 Resource interpreted as Script but transferred with MIME type text/plain: nginx - Resource interpreted as Stylesheet but transferred with MIME type text/plain js模版使用"> js模版使用
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM