transpiled modules don't get rebuilt anymore
See original GitHub issueDescribe the bug
modules (from node_modules
folder) which are transpiled using transpileDependencies
and transpile
options in quasar.conf.js
were previously watched for changes and if changes to those modules occurred, the quasar app (spa in my case) would rebuild and directly apply the changes. this can be useful, if you want to link your dependency and develop it within a quasar app, e. g. via npm link my-dependency
. i used this for some years now.
but recently i noticed it doesn’t work anymore. there are no errors in the console and the change still appears to be detected. it even looks like it’s rebuilding the app (judging by console), but the app never updates the changed part. only restarting the development server (quasar dev
) helps, or changing some prop in quasar.conf.js
which triggers the whole app to be rebuilt.
this is a major blocker for any development involving (linked) dependencies.
Codepen/jsFiddle/Codesandbox (required) i don’t think this can be shown on codepen, sorry.
To Reproduce Steps to reproduce the behavior:
- create a quasar spa app
- add a dependency
- link that dependency to your local project (
npm link my-dependency
in quasar folder) - add that dependency to
transpileDependencies
and settranspile
option totrue
inquasar.conf.js
quasar dev
- change something in the local project that is used by the quasar app (i tested with
.vue
files) - see that change doesn’t get applied
Expected behavior change should be applied, just as if the dependency was a part of the source code
Platform (please complete the following information): Quasar Version: 2.0.3 @quasar/app Version: 3.0.3
Quasar mode:
- SPA
- SSR
- PWA
- Electron
- Cordova
- Capacitor
- BEX
Tested on:
- SPA
- SSR
- PWA
- Electron
- Cordova
- Capacitor
- BEX
OS: linux (someone i know could reproduce the issue in windows) Node: 16 (also tested 14, no difference) NPM: 7 (also tested 6 - i believe -, no difference) Yarn: Browsers: iOS: Android: Electron:
Additional context I also tried downgrading node, which didn’t help. I also tried downgrading the two quasar packages to some betas, which didn’t help either. i think this problem is different from the other one, because it only affects modules and i have no console errors. other one: https://github.com/quasarframework/quasar/issues/10083 i also believe this problem isn’t directly about linking, because normal (unlinked) dependencies show the same issues when changed.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
HMR should work with symlinked deps now. 100%.
Only thing that comes to my mind is you’re prolly developing a PWA? In which case: https://quasar.dev/quasar-cli/developing-pwa/hmr-for-dev#introduction
Think I found the culprit. Please retry with “@quasar/app” v3.1.6.