修復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