Skip to content

[Vite 3] HMR doesn't work on first dev #8719

Closed
@brillout

Description

Describe the bug

HMR doesn't work the first time the dev server is started.

Reproduction

https://github.com/brillout/vite-3-bug_hmr-first-dev

System Info

System:
    OS: Linux 5.10 Debian GNU/Linux 10 (buster) 10 (buster)
    CPU: (2) x64 Intel(R) Celeron(R) N4020 CPU @ 1.10GHz
    Memory: 2.71 GB / 2.71 GB
    Container: Yes
    Shell: 5.0.3 - /bin/bash
  Binaries:
    Node: 18.0.0 - ~/.config/nvm/versions/node/v18.0.0/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.6.0 - ~/.config/nvm/versions/node/v18.0.0/bin/npm
  npmPackages:
    @vitejs/plugin-react: 2.0.0-beta.0 => 2.0.0-beta.0 
    vite: 3.0.0-beta.0 => 3.0.0-beta.0

Used Package Manager

pnpm

Logs

No response

Validations

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