-
-
Notifications
You must be signed in to change notification settings - Fork 335
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 stops when using vue-i18n-next #568
Comments
Thank you for your reporting! Unfortunately, I couldn't reproduce this issue. 😞 |
Glad I found this - got the same problem as well. Spend the last few hours stripping everything out of my app and traced it down to this package. As soon as I |
Seems this problem could only be reproduced with legacy mode, not the Composition API mode. Please note that the legacy mode will be set by default. // 2. Create i18n instance with options
const i18n = createI18n({
legacy: false,
locale: 'ja', // set locale
fallbackLocale: 'en', // set fallback locale
messages, // set locale messages
// If you need to specify other options, you can set other options
// ...
}) Trying to figure out what's wrong here. |
Seems this is caused by |
You are right, turning off legacy mode make it work. |
Just opened a new issue in |
fixed: vuejs/core@db3f57a |
Reporting a bug?
in new vue3 project created by [email protected], using vue-i18n-next make HMR stop working.
template changes are detected but changes in script section like methods and lifehook methods are not.
Expected behavior
Changes in script section of SFC affect without refreshing browser.
Reproduction
just use vue-i18n-next in new vue3 project created by [email protected]
main.js :
removing
.use(i18n)
makes HMR work again!System Info
Screenshot
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: