Closed haijingsea closed 6 years ago
Hi @haijingsea,
This error is usually occurring if your code contains es2015 javascript that has not been transpiled by babel and is not yet supported in your browser.
The solution is to either include the vuex-i18n in your transpilation pipeline or to use the transpiled and minified version like this:
import vuexI18n from 'vuex-i18n/dist/vuex-i18n.umd.js';
There is a small section in the readme about this. Maybe it is not yet clear enough.
// current part of the readme:
// please note that the default format for the plugin is in es2015
// for use in server side rendering (such as nuxt), the umd version should be loaded like this
import vuexI18n from 'vuex-i18n/dist/vuex-i18n.umd.js';
I have a project which is running normal,but I import vuex-i18n module,compile is Ok,but I find a issue when I refresh the browser,I need your help ,thank you.