-
-
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
Vite Quasar Plugin - Dev Server Bootstrapping issue #15815
Comments
Any updates on this? |
Can confirm this is affecting our apps as well when testing with vitest. Any update on a fix for this? |
+1 |
1 similar comment
+1 |
I'm seeing the same error with cypress component tests |
After some testing, it appears that import order matters.
Same fix works for cypress component testing, adding |
Can confirm adding import 'vue' to the top of |
Import order was never an issue before. What changed? I would consider this a hack to fix the issue, when it should be reconciled by the transpiler and/or the plugins. |
What happened?
Hello, using the quasar vite plugin v1.3.3 I am getting the following error when the ESM bundles are being created:
I have tried removing the split chunks plugin and going barebones. This seems to be an odd issue with Vite 4.x and Quasar. I can get the dev server to run by commenting out the quasar plugin, but that defeats the purpose of using it. I also had to remove this for Vitest to work correctly.
What did you expect to happen?
The Dev Server bootstraps correctly and starts without failure.
Reproduction URL
https://stackblitz.com/edit/quasarframework-jflmsk
How to reproduce?
Flavour
Vite Plugin (@quasar/vite-plugin)
Areas
Plugins (quasar)
Platforms/Browsers
Firefox, Chrome, Safari, Microsoft Edge, Electron
Quasar info output
Relevant log output
Additional context
This is also an issue with Vitest. Removing the plugin from the vite configuration allows the tests to run.
It seems this is the line in question that's failing:
quasar/ui/src/plugins/Platform.js
Line 16 in 665baf7
The text was updated successfully, but these errors were encountered: