TypeError: i18nExtract.logI18NReport is not a function
whaleforever opened this issue · comments
latest dependency vue-i18n-extract doesn't have logI18NReport . Running i18n:report will cause error:
ERROR TypeError: i18nExtract.logI18NReport is not a function
this can be fixed using npm install vue-i18n-extract@1.0.2
specific 1.0.2 version not the latest one.
Need changes to support latest version vue-i18n-extract.
I have the same issue. Installed with vue add i18n
with Vue 3 cli.
it creates this command automatically in package.json
"i18n:report": "vue-cli-service i18n:report --src \"./src/**/*.?(js|vue)\" --locales \"./src/locales/**/*.json\"",
when trying to run this command, this error happens.
TypeError: i18nExtract.logI18NReport is not a function
What should be done additionally to make it work?
I'm facing the same issue as well. Is there any update we should make to fix the issue? PS: I have the latest version
└─ vue-cli-plugin-i18n@2.3.2
2.2.0 is no error
npm i vue-cli-plugin-i18n@2.2.0
2.3.1 works too. It's the vue-i18n-extract upgrade that causing this.