This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Failed to load module script: Expected a JavaScript module script #16736
Labels
You can continue the conversation there. Go to discussion →
Describe the bug
i got error
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type
when i have new release version (deployment) but when i reload the web page the issue is gone
i try this solution but it now working
https://vitejs.dev/guide/build.html#load-error-handling
here my vite config
export default defineConfig({
plugins: [react()],
base: './',
server: {
port: 3000,
}
resolve: {
alias: {
components: resolve(dirname, 'src/components')
},
},
});
Reproduction
Steps to reproduce
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: