question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hot Reload doesn't work when creating project with TypeScript support (Class based)

See original GitHub issue

Hot 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:

  1. quasar create test-quasar-ts
  2. quasar dev
  3. Edit index.vue and save
  4. 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:closed
  • Created 2 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rstoenescucommented, Nov 4, 2021

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!

1reaction
dickerpullicommented, Sep 1, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found