vue3+vite项目页面在上时间不点击的话、点击切换页面以后就会报如下错误,求解决方案!!!
报错信息:
index.6947ed56.js:1 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.
应该是你引入的模块文件不存在,或者文件路径不正确,检查下