Closed veitbjarsch closed 8 months ago
Looks like the @vue/devtools/cli.mjs
file imports a non-existent path (import('@vue/devtools-electron/cli')
.
Until I can figure out how we can go around it (and also report the issue to the Vue Devtools team), please install @vue/devtools
v6.
Found a good workaround.
For those reading these lines, please upgrade to latest q/app-vite (v1.7.3 at current time) or q/app-webpack (3.12.3 at current time). I've just released them.
it doesn't work with @quasar/app-vite": ^2.0.0-beta.5", again.
install the plugin as dev dependency
npm add -D vite-plugin-vue-devtools
import vueDevTools from 'vite-plugin-vue-devtools';
//inside build key of configuration enable extendViteConf and add the following line of code
build: {
extendViteConf(viteConf) {
viteConf.plugins = viteConf.plugins || [];
viteConf.plugins.push(vueDevTools());
},
}
install the plugin as dev dependency
npm add -D vite-plugin-vue-devtools
import vueDevTools from 'vite-plugin-vue-devtools'; //inside build key of configuration enable extendViteConf and add the following line of code build: { extendViteConf(viteConf) { viteConf.plugins = viteConf.plugins || []; viteConf.plugins.push(vueDevTools()); }, }
Does this break hot reloading for anyone else?
Edit: Works better for me (i.e. does not break hot reloading) when added to quasar.config.js like so:
build: {
vitePlugins: [
['vite-plugin-vue-devtools']
]
}
What happened?
When upgrading @vue/devtools to the latest version (v7.0.10) I can't start the dev mode anymore.
Reason: quasar/app-vite tries to run the bin.js file, which isn't present anymore in the latest version of @vue/devtools. The code that tries to execute the file can be found here: https://github.com/quasarframework/quasar/blob/492b31bfd1b98e0831eb4eda72dc947fcb205725/app-vite/lib/cmd/dev.js#L96-L105
What did you expect to happen?
Quasar should work with the latest version of vue devtools.
Reproduction URL
https://github.com/quasarframework/quasar/blob/492b31bfd1b98e0831eb4eda72dc947fcb205725/app-vite/lib/cmd/dev.js#L96-L105
How to reproduce?
quasar dev --devtools -m cordova -T android
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Cordova Mode
Platforms/Browsers
Android
Quasar info output
Relevant log output
Additional context
No response