Skip to content

HMR through Vite handleHotUpdate doesn't seem to affect Nuxt SSR #30169

Open
@dolbex

Description

Environment

Stackblitz

------------------------------
- Operating System: Linux
- Node Version:     v18.20.3
- Nuxt Version:     3.14.1592
- CLI Version:      3.16.0
- Nitro Version:    2.10.4
- Package Manager:  npm@10.2.3
- Builder:          -
- User Config:      default
- Runtime Modules:  -
- Build Modules:    -
------------------------------

Reproduction

https://stackblitz.com/edit/github-3grtb9?file=app.vue

Describe the bug

During development triggering an HMR on a virtual module doesn't seem to update on the server side.

In the attached reproduction edit anything on app.vue and refresh the browser pane and you'll notice the time changes on the clientside after hydration but the serverside is stuck at the time the dev server was started.

Maybe there is something I'm missing in my vitePlugin.ts in my invalidation of that module. I do see in the terminal the invalidation take place.

Thanks to anyone that could give me a hand here.

Additional context

No response

Logs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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