|
[问题求助]
vite编译后,在安卓机报错Failed to load module script
[复制链接]
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of ". Strict MIME type checking is enforced for module scripts per HTML spec
使用vite+vue3开发的项目,打包之后将文件直接放入项目目录,加载本地文件时,报上面这个错误。如果放到服务器上,远程打开页面,就没有问题。我看之前有人问,说是js服务器返回的问题,但是把编译之后的文件放本地一起打包的话,该怎么处理?
|
|