Closed Loghorn closed 6 years ago
{ preserveState: true } in registerModule - it's call error
Look this comment for issue https://github.com/vuejs/vuex/issues/1130#issuecomment-356612119
Thank you both for clearing this up. I will adapt the code and push a new version as soon as possible.
This is fixed in the latest version 1.10.4. Many thanks your your help.
Using
vuex
> 2.5 with the latest vuex-i18n 1.10.3 does not work. The console logs this error:i18n: i18n vuex module is not correctly initialized. Please check the module name: i18n
You can easily reproduce the issue by upgrading the
vuex
version in thetest/index.html
page.The problem relies in the option
preserveState: true
passed tostore.registerModule
, because this prevents the creation of the i18n store. Removing the option fixes the issue.