Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.

看到报错,搜索后的第一反应是vite打包时出错了,结果是浏览器的本地缓存导致出错。

开发时勾选停用缓存

本文作者:pocoui

本文链接:https://www.cnblogs.com/poco-o/p/17091559.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   pocoui  阅读(2043)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示