You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading vite 2.4.2 version, the following error will appear in the chrome log: client: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.
Reproduction
Configure in the vite.config.js file: resolve: { extensions: [], },
WTF!Just configure the'extensions' parameter and it will reproduce 100%
System Info
client: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.
Used Package Manager
npm
Logs
client: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.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
Describe the bug
After upgrading vite 2.4.2 version, the following error will appear in the chrome log:
client: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.
Reproduction
Configure in the
vite.config.js
file:resolve: { extensions: [], },
WTF!Just configure the'extensions' parameter and it will reproduce 100%
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: