You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use vue-i18n-extract and vue-i18n v9 for Vue 3, but get the following error when trying to run it:
npm run vue-i18n-extract
> huispage@0.0.1 vue-i18n-extract
> vue-i18n-extract report --vueFiles './src/**/*.?(js|vue|ts)' --languageFiles './src/i18n/*.?(ts|js|mjs)'
[vue-i18n-extract] SyntaxError: Unexpected token 'export'
at /home/lars/src/Huispage/frontend/node_modules/vue-i18n-extract/dist/vue-i18n-extract.umd.js:199:47
at Array.map (<anonymous>)
at readLanguageFiles (/home/lars/src/Huispage/frontend/node_modules/vue-i18n-extract/dist/vue-i18n-extract.umd.js:187:24)
at createI18NReport (/home/lars/src/Huispage/frontend/node_modules/vue-i18n-extract/dist/vue-i18n-extract.umd.js:339:27)
at CAC.<anonymous> (/home/lars/src/Huispage/frontend/node_modules/vue-i18n-extract/bin/vue-i18n-extract.js:47:5)
at CAC.runMatchedCommand (/home/lars/src/Huispage/frontend/node_modules/cac/dist/index.js:614:34)
at CAC.parse (/home/lars/src/Huispage/frontend/node_modules/cac/dist/index.js:541:12)
at Object.<anonymous> (/home/lars/src/Huispage/frontend/node_modules/vue-i18n-extract/bin/vue-i18n-extract.js:56:5)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
In installed it as explained in the README, with the following in package.json:
Does vue-i18n-extract not support vue-i18n v9 for Vue 3 or am I doing something wrong? I found some old threads describing the same issue (I think) but it's not clear to me how to fix it.
The text was updated successfully, but these errors were encountered:
I'm trying to use vue-i18n-extract and vue-i18n v9 for Vue 3, but get the following error when trying to run it:
In installed it as explained in the README, with the following in
package.json
:My locale message file looks like this:
Does vue-i18n-extract not support vue-i18n v9 for Vue 3 or am I doing something wrong? I found some old threads describing the same issue (I think) but it's not clear to me how to fix it.
The text was updated successfully, but these errors were encountered: