Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: JavaScript Module Loading Error with DevTools Enabled: It uses a disallowed MIME type (" text/html ") #402

Closed
CharleeWa opened this issue Aug 24, 2023 · 3 comments
Labels
bug Something isn't working needs reproduction

Comments

@CharleeWa
Copy link

CharleeWa commented Aug 24, 2023

๐Ÿ› The bug

While the current bug isn't causing any noticeable disruptions in the tool's functionality, it does introduce an unfriendly experience.

๐Ÿ› ๏ธ To reproduce

private link

๐ŸŒˆ Expected behavior

I expected the application to load and function as intended without encountering any JavaScript module loading errors.

โ„น๏ธ Additional context

Version message

@nuxt/devtools : "^0.8.0"`

Error message

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.

from http://127.0.0.1:3000/__nuxt_devtools__/client/@vite/client
@CharleeWa CharleeWa added the bug Something isn't working label Aug 24, 2023
@CharleeWa CharleeWa changed the title fix: JavaScript Module Loading Error with DevTools Enabled: Expected MIME Type 'text/html', but Received 'text/html fix: JavaScript Module Loading Error with DevTools Enabled: It uses a disallowed MIME type (" text/html ") Aug 24, 2023
@greenhat616
Copy link

Same issue. Maybe Related issue: #352 (not completely fixed)
image

@antfu
Copy link
Member

antfu commented Aug 28, 2023

Please provide a minimal reproduction. Thanks.

Why reproduction is required

@antfu
Copy link
Member

antfu commented Aug 28, 2023

It should be fixed in 0.8.1

@antfu antfu closed this as completed Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs reproduction
Projects
None yet
Development

No branches or pull requests

3 participants