Open kosratdev opened 4 years ago
Do you import LocaleStore
anywhere?
Webpack won't include files that are not imported anywhere
You can get strong typing on your module by not using vuex-class
and getting a reference to your module with getModule(LocaleStore)
. This will also include the module in the bundle built by webpack.
Dynamic module doesn't work for me this is my configurations store/index.ts
store/modules/locale.ts
src/App.vue
The out put will be
vuex.esm.js?2f62:1130 [vuex] module namespace not found in mapGetters(): locale/