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 on auto-imported component #86

Closed
rafaelytakei opened this issue Jul 4, 2021 · 4 comments · Fixed by #87
Closed

HMR on auto-imported component #86

rafaelytakei opened this issue Jul 4, 2021 · 4 comments · Fixed by #87

Comments

@rafaelytakei
Copy link
Collaborator

Hi, it's my first trying to use Vite, so I might be doing something wrong, but here's my problem:

HMR is not working properly on auto imported components using this plugin - if I import them manually it works just fine.

Example repo: https://github.com/rafaelytakei/vite-component-test

On this repo, if you install -> run dev server -> try to change something in the HelloWorld component, it won't update unless I shut down the dev server and start it again. If I import the component manually on pages/index.vue, it updates normally

@husayt
Copy link

husayt commented Jul 4, 2021

İ have also noticed this problem in 0.12.0. Works in 0.11.5

@rafaelytakei
Copy link
Collaborator Author

Just tried downgrading to v0.11.0 and now it's working (v0.11.5 didn't work for me tho)

@oseau
Copy link

oseau commented Jul 5, 2021

Just tried downgrading to v0.11.0 and now it's working (v0.11.5 didn't work for me tho)

In my case 0.11.4 is working fine.

@hannoeru
Copy link
Member

hannoeru commented Jul 6, 2021

What OS are you using?

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

Successfully merging a pull request may close this issue.

4 participants