Skip to content

Vue 3.5.21 breaks HMR when used along with vite-plugin-checker #18120

@LeandroMoura3

Description

@LeandroMoura3

What happened?

I created a new Quasar project from scratch using the command npm init quasar@latest.

I selected:
App with Quasar CLI, let's go!
TypeScript
Quasar App CLI with Vite
Composition API with <script setup>
Sass with SCSS syntax
All available feature options
Added code formatting
Ran npm install

After that, I ran npm run dev.

I went to the initial file, added class="bg-red" to one of the files, saved it, and the hot reload didn't work.

I repeated the same procedure, just switching to webpack, and it worked.

node --version
v22.19.0

npm --version
11.5.2

I'm on Windows. This bug happens in macOS too.

What did you expect to happen?

Vite hot reloading working.

Reproduction URL

https://stackblitz.com/edit/quasarframework-stackblitz-templates-gemxzymg?file=src%2Fpages%2FIndexPage.vue&title=Quasar%20Framework%20-%20app-webpack%20v4

How to reproduce?

Create a project and follow instruction of the descrption. Then try to hot reaload.

Example:
In a new quasar project, add a class in some .vue file, like IndexPage.vue

Image

Then save. Hot realoding not works.

Image

After manually realod page:

Image

But in webpack:

Image

Then the screen becomes green without I need to manually refresh the page.

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite)

Platforms/Browsers

No response

Quasar info output

Relevant log output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions