Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hmr not work when i use vite library build js and use it in vue #12344

Closed
chenendian opened this issue Nov 7, 2024 · 4 comments
Closed

hmr not work when i use vite library build js and use it in vue #12344

chenendian opened this issue Nov 7, 2024 · 4 comments

Comments

@chenendian
Copy link

Vue version

3.4.37

Link to minimal reproduction

https://stackblitz.com/~/github.com/chenendian/vitejs-vite-gjvzny?file=src/App.vue

Steps to reproduce

yarn dev

What is expected?

edit template div txt hmr update borwer

What is actually happening?

hmr not work

System Info

No response

Any additional comments?

No response

@edison1105 edison1105 added the need more info Further information is requested label Nov 7, 2024
@edison1105
Copy link
Member

image
Please check your minimal reproduction link.

@chenendian
Copy link
Author

图像 请检查您的最小复制链接。

now this link is accessible.

@edison1105 edison1105 added scope: hmr and removed need more info Further information is requested labels Nov 8, 2024
@edison1105
Copy link
Member

import TestHmr from ../dist/index.es.js is overriding window.__VUE_HMR_RUNTIME__ from Vue.js, which is causing HMR to fail.

@edison1105 edison1105 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 8, 2024
@chenendian
Copy link
Author

this poblem is resolved use this fucntion this is lin vitejs/vite#11730

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants