Skip to content

v-model hmr has problem #270

@bigMeowCoding

Description

@bigMeowCoding

Describe the bug

v-model directive changed, vite hmr not work at immediate

Reproduction

https://stackblitz.com/edit/vitejs-vite-edgswe?file=src%2FApp.vue&terminal=dev

Steps to reproduce

change first input :value to v-model , the code vue bidirectional binding should work right now, but page hmr not work ,You need to refresh the page manually:)

System Info

System:
    OS: macOS 13.4.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 189.73 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.18.1 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 9.8.1 - /usr/local/bin/npm
    pnpm: 8.7.4 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 117.0.5938.149
    Safari: 16.5.2
  npmPackages:
    @vitejs/plugin-vue: 4.4.0 => 4.4.0 
    @vitejs/plugin-vue-jsx: 3.0.2 => 3.0.2 
    @vitejs/test-example-external-component: file:example-external-component => 0.0.0 
    vite: ^4.4.11 => 4.4.11

Used Package Manager

npm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions