vue-cli-plugin-i18n icon indicating copy to clipboard operation
vue-cli-plugin-i18n copied to clipboard

TypeError: i18nExtract.logI18NReport is not a function

Open whaleforever opened this issue 4 years ago • 4 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 [email protected] specific 1.0.2 version not the latest one.

Need changes to support latest version vue-i18n-extract.

whaleforever avatar Jul 09 '20 05:07 whaleforever

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?

seyfer avatar Apr 18 '23 12:04 seyfer

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

└─ [email protected]

webkod3r avatar May 30 '23 22:05 webkod3r

2.2.0 is no error

npm i [email protected]

kaihei777 avatar Jun 02 '23 09:06 kaihei777

2.3.1 works too. It's the vue-i18n-extract upgrade that causing this.

khamaileon avatar Aug 06 '23 18:08 khamaileon