vitejs / vite-plugin-vue

Vite Vue Plugins
MIT License
486 stars 153 forks source link

The value is undefined after hot update #57

Open an501920078 opened 1 year ago

an501920078 commented 1 year ago

Describe the bug

C957D87E-7994-47ca-9C4E-E4B412AE2EA7 After making random changes in this file, hot update can no longer get the viewer value; Finally, it was found that the router in http affected him; 5ECB77B5-B73C-4ebf-9DF7-87FC1D0A791B

Reproduction

https://github.com/an501920078/bugDemo.git

Steps to reproduce

pnpm i pnpm run dev Edit initHomeView.ts save

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
    Memory: 4.15 GB / 15.84 GB
  Binaries:
    Node: 16.16.0 - D:\nodenvm\nodejs\node.EXE
    npm: 9.1.3 - D:\nodenvm\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.900.0), Chromium (108.0.1462.46)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    @vitejs/plugin-vue: ^4.0.0 => 4.0.0
    @vitejs/plugin-vue-jsx: ^3.0.0 => 3.0.0
    vite: ^4.0.0 => 4.0.0

Used Package Manager

pnpm

Logs

No response

Validations

an501920078 commented 1 year ago

Has anyone solved this problem?