Hot Reload doesn't work when creating project with TypeScript support (Class based)
See original GitHub issueHot reload does not work when you create new project with quasar create
with TypeScript support.
Tried creating a new project without TypeScript and hot reload work out-of-the-box as expected.
To Reproduce Steps to reproduce the behavior:
quasar create test-quasar-ts
quasar dev
- Edit index.vue and save
- Observe the change in browser - nothing changes
Expected behavior Hot reload should work and reflect changes on the fly
Platform (please complete the following information): Quasar Version: 1.2.1 @quasar/app Version: 2.0.4
Quasar mode:
- [ X ] SPA
- SSR
- PWA
- Electron
- Cordova
- Capacitor
- BEX
Tested on:
- [ X ] SPA
- SSR
- PWA
- Electron
- Cordova
- Capacitor
- BEX
OS: Windows_NT(10.0.18363) - win32/x64 Node: 14.17.0 NPM: 7.7.6 Yarn: 1.21.1 Browsers: Chrome Version 92.0.4515.159 (Official Build) (64-bit) iOS: Android: Electron:
Additional context
It works fine when I do quasar create
but not selecting TypeScript support.
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Hot reload for Typescript compile in Razor class library in ...
I'm stuck because I don't understand the underlying magic. Changing any .cshtml file in the RCL will trigger a hot reload in the...
Read more >TypeScript Project Setup— Hot Reloading, Libraries and Build ...
However, not everyone knows how it actually works. In this article, we'll look at how to create a TypeScript project that does hot...
Read more >Using Vue with TypeScript - Vue.js
Vue is written in TypeScript itself and provides first-class TypeScript support. All official Vue packages come with bundled type declarations that should work...
Read more >React Hot Reload for TypeScript & Webpack/ts-loader Or Fuse ...
Compile-time transformation is done using a TypeScript compiler hook,; Supports both React component classes and functional components,; Reliable hot-reload ...
Read more >Hot Reload in ElectronJS - GeeksforGeeks
ElectronJS is an Open Source Framework used for building ... The electron does not provide any in-built hot reloading module however, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems that my PR has been merged and the vue-loader team has released a new version. So upgraded to the new vue-loader in “@quasar/app” v3.1.9 – highly recommended for those using the Class API.
Enjoy!
I can confirm that issue. I also have created a new quasar app with typescript and class based. Hot reload does not work in browser. The console (quasar dev) is fine, it recompiles, but the browser doesn’t recognize.
Changes in the created
Index.vue
are not reloaded. Do the same change on an composition api based created app works well.Maybe related to this? https://github.com/vuejs/vue-class-component/issues/521