ES6 modules in local files - The server responded with a non-JavaScript MIME type

前端 未结 7 907
夕颜
夕颜 2020-11-28 07:07

I get this error:

Failed to load module script: The server responded with a non-JavaScript MIME type of \"\". Strict MIME type checking is enforced fo

7条回答
  •  渐次进展
    2020-11-28 07:27

    I solved the same problem adding this line to apache mime types file configuration:

    AddType aplication/javascript .js

    I hope this helps.

提交回复
热议问题