vue-i18n-extract: 2.0.5: [vue-i18n-extract] Error: vueFiles glob has no files.
Since today, my npm run script is not working anymore, it throws a error about vueFiles glob has no files..
I see there was a release 2.0.5 yesterday. 2.0.4 works perfectly fine.
My config file has:
vueFiles: "./src/**/*.?(ts|js|vue)",
Did you change something on the files matcher since 2.0.4?

My workaround for now is, to execute your 2.0.4 version:
"i18n:reportDeOnly": "npx vue-i18n-extract@2.0.4 --languageFiles ./src/locales/de-CH.json",
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 19 (6 by maintainers)
I didn’t specifically, but I did update the glob package which might have changed the syntax?
I also meet this error in version 2.0.7,I’m use windows 10. my cmd is
vue-i18n-extract report --vueFiles 'src/views/**/*.?(vue)' --languageFiles 'src/lang/zh.json'I log the path as below
and find it become as below
so, fix this error need remove the quotation mark for vueFiles and languageFiles argument.
this cmd will work:
vue-i18n-extract report --vueFiles src/views/**/*.?(vue) --languageFiles src/lang/zh.jsonmy window 11: fix done
vue-i18n-extract report --noEmptyTranslation=\"*\" --add true --vueFiles=\"./src/**/*.?(vue|ts)\" --languageFiles=\"./src/locales/*.json\"@mreduar I filed another PR for addressing this: https://github.com/Spittal/vue-i18n-extract/pull/170
Same problem here
Same problem with
2.0.5and2.0.6version, even with avue-i18n-extract.config.jsfile.2.0.4works but doesnt make the job for me because it doesnt recognize the--excludeparameter. (is it a bug too ?)