-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Quasar build bug? #17319
Comments
Hi @MandingaRadi! 👋 It looks like you provided an invalid or unsupported reproduction URL. Without a proper reproduction, your issue will have to get closed. Thank you for your collaboration. 👏 |
Done! |
I tried using npm instead of yarn, webpack instead of vite and changing node 20 to node 18 and the problem persists. The weird thing is that I also did a clean install of windows, vscode, etc. |
To rule out a problem with firebase hosting, I just created a simple html website and uploaded it. It shows it perfectly. There is definitely some problem in the compilation when I use quasar build. |
What happened?
Hello quasar people!
I was working on a PWA made with quasar and suddenly, when uploading it to my firebase hosting, I encounter the following 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 checking is enforced for module scripts per HTML spec.
I tried everything and the error does not go away. As a last resort, I decided to reinstall my windows from scratch, and try to implement a basic quasar spa, without modifying anything. But the error persists.
I have been working for years with quasar and firebase, and I have never had anything like this happen to me.
The basic spa is hosted at https://mcaenergy.web.app, in case you want to check the error.
The "quasar build -m spa" does it correctly, as well as the "firebase deploy".
I don't know what else to try, I thank you for your help already.
What did you expect to happen?
Just display the content of my webapp!
Reproduction URL
https://github.com/MandingaRadi/Error
How to reproduce?
In firebase hosting the "quasar icon" and the "productName" load correctly, but nothing else.
In github: not found error 404
in dev mode work's fine.
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite)
Platforms/Browsers
Other
Quasar info output
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: