-
-
Notifications
You must be signed in to change notification settings - Fork 861
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
Cannot redefine property: $i18n #402
Comments
The error come from vue-i18n-esm.js at this line : Object.defineProperty(Vue.prototype, '$i18n', { In my mind there should be a test that this property isn't already initialized |
An error message is thrown if the property '$i18n' is already defined on the Vue prototype. This Commit will hopefully prevents this. Bug report: kazupon#402
Hello, "vue": "^2.5.17", |
here is a fiddle that reproduce the problem : https://jsfiddle.net/jgribonvald/cmyk6Lua/ |
I close the issue as an other issue exist #422 so continue on... |
vue & vue-i18n version
2.5.16, 8.0.0
Reproduction Link
Steps to reproduce
building 2 web-components importing vue-i18n and deploy it on the same page it tries to redefine the same property
What is Expected?
managing several imports on save Vue instance (or maybe there is a problem that it doesn't create nth instance of vue per web component ?)
What is actually happening?
It tries to redefine the property $i18n whereas it was already initiated into another web component generated by an other build.
The text was updated successfully, but these errors were encountered: