Failed to load module script: Expected a JavaScript module script but the server responded with a MI

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.config.js文件中base的值为  '/',或者不设置,因为默认是  '/'

Failed to load module script: Expected a JavaScript module script but the server responded with a MI_第1张图片

 有用的话赏个赞呗

你可能感兴趣的:(javascript,前端,服务器)