Failed to load module script: Expected a JavaScript-or-Wasm module script but the server responded w
·
前端打包部署到测试环境报错
Failed to load module script: Expected a JavaScript-or-Wasm 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.
在此之前打包都正常,搜了一下网上有两种原因
1.后端配置nginx
2.前端更改vite.config.ts

更多推荐


所有评论(0)