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
Hot reload in Quasar Dev is broken #10083
Comments
I have lot (LOTS!) of projects for Quasar v2 and non-of them have broken HMR. I would check your environment. Maybe a firewall or some other watcher of your ports. hmr-works.mp4 |
Maybe try a different port, too |
thats a good idea i will try to replicate the problem in a clean installation and in a new port. |
I have the same problem. I've made a video to show you what happens. problemHRM.mp4 |
i have a similar error: hmr doesn't work then changing a file in linked dependencies, e. g.
error doesn't seem to come from quasar tho, since i tried to downgrade:
error still persisted. i also tried a node version downgrade from v16 to v14 but that didn't help either. os: arch linux any other ideas? edit: it's not just linked dependencies, it's dependencies per se. at least transpiled ones. maybe i will open a separate issue tomorrow. |
There is a similar issue here : #9302 I encountered this bug with Hot-Reload as well. |
the quasar team could try updating the |
@hawkeye64 there are some breaking changes, though. i tried it locally and quasar didn't launch because some webpack-dev-server options got renamed, apparently. edit: it seems changing references: quasar/app/lib/quasar-conf-file.js Line 609 in 78df1f4
|
i did some more local experiments. after changing the i know i am just some random internet dude but i would still advise to use the newest versions possible (if not possible, fine - vue cli still uses |
okay, so i found a way to get the newest webpack-dev-server version running for me (spa) and it also seems to fix the worst bugs regarding linked modules. now i only have to press f5 to see the changes, which is far better than rebuilding the whole app... here's what i did, but beware that this could probably introduce problems in error handling and other areas; try at your own risk: on a local, linked version of
listen () {
const cfg = this.quasarConfFile.quasarConf
const webpackConf = this.quasarConfFile.webpackConf
return new Promise(resolve => {
const compiler = webpack(webpackConf.renderer)
compiler.hooks.done.tap('done-compiling', stats => {
if (this.__started) { return }
// start dev server if there are no errors
if (stats.hasErrors() === true) {
return
}
this.__started = true
})
// start building & launch server
this.server = new WebpackDevServer(compiler, cfg.devServer)
compiler.compile(() => {
this.server.listen(cfg.devServer.port, cfg.devServer.host, () => {
if (openedBrowser === false) {
openedBrowser = true
if (cfg.__devServer.open && ['spa', 'pwa'].includes(cfg.ctx.modeName)) {
openBrowser({ url: cfg.build.APP_URL, opts: cfg.__devServer.openOptions })
}
}
resolve()
})
})
})
} the hook wasn't called until i called |
Facing the same issue as well |
@therealcoder1337 @athamour1 have you tried q/app v3.1.0 released last week? |
I just tested it on my project, no luck, the HMR is still dead. |
Same problem with an SPA project in quasar V2 that worked just fine, but now seems to hot-reload only the first update. After that the browser does not update. Only stop and start of the server fixes it. The terminal shows successful recompile, the browser console shows
In some cases the last line is printed 10`s of times a second as you can see in the image Related (all of them unanswered): This problem seems to be happening at least from April. |
FOUND IT! For some reason this worked, but it made hot-reload broken. Hope this will help someone |
@IlCallo yes, the problem persists even after upgrading all dependencies. |
Whatever it is, it is an external problem (either Webpack or webpack-dev-server), out of our reach. Is this still happening with |
yes, still happening, i just set up a fresh project. changing something within the console doesn't output anything beyond
so no "finished compiling" or anything like that in console. Meta:
Running on Linux, used TypeScript + Composition API Style |
I have not had this issue once and the only difference is typescript. Something in the toolchain is broken. The hard part is figuring out what. It'll be interesting to see if this is still an issue with the Vite plugin Razvan is working on. |
Think I found the culprit. |
@rstoenescu every since 3.1.6 I get these errors, and cannot launch the dev server anymore: |
@mesqueeb No way around it. The |
I dont think changing to |
Found the error, just in case someone is looking for in your routes files make sure your path has the correct name including the capitals. |
An app I've been working on for months just abruptly stopped hot reload. I have another app that works fine. I have the same versions of quasar, vite, and vue in both. Any thoughts? |
Same here, just stopped working since I updated Vue, Quasar and other packages to the latest version. Only CSS changes are updated without refreshing the page. Async components (loaded through defineAsyncComponent) are refreshed only if you unmount and mount them again. |
I have two different Quasar projects in my monorepo. |
Describe the bug
Hot reload in Quasar Dev is broken
Codepen/jsFiddle/Codesandbox (required)
Fork a Codepen (https://codepen.quasar.dev) or a jsFiddle (https://jsfiddle.quasar.dev) or a Codesandbox (https://codesandbox.quasar.dev) and hit save then copy-paste link here.
To Reproduce
just open a quasar project in dev and go in the console inside the browser
Screenshots
Platform (please complete the following information):
Quasar Version : 3.0.2
@quasar/app Version : "^3.0.0"
OS : 5.12.16-1-MANJARO
Node : v16.4.1
NPM : 7.18.1
Yarn : 1.22.10
Browsers : [ "Firefox Dev 90.0b12 (64-bit)", "Google Chrome 91.0.4472.114 (Official Build) (64-bit)" ]
Additional context
I have heard from several friends, have the same problems in windows.
The text was updated successfully, but these errors were encountered: