Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

TypeError: i18nExtract.logI18NReport is not a function #117

Open
whaleforever opened this issue Jul 9, 2020 · 4 comments
Open

TypeError: i18nExtract.logI18NReport is not a function #117

whaleforever opened this issue Jul 9, 2020 · 4 comments

Comments

@whaleforever
Copy link

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.

@seyfer
Copy link

seyfer commented Apr 18, 2023

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?

@webkod3r
Copy link

webkod3r commented May 30, 2023

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

@kaihei777
Copy link

2.2.0 is no error

npm i [email protected]

@khamaileon
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants