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?

image

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)

Most upvoted comments

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 image

and find it become as below image

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.json

my window 11: fix done vue-i18n-extract report --noEmptyTranslation=\"*\" --add true --vueFiles=\"./src/**/*.?(vue|ts)\" --languageFiles=\"./src/locales/*.json\"

Same problem here

Same problem with 2.0.5 and 2.0.6 version, even with a vue-i18n-extract.config.js file.

2.0.4 works but doesnt make the job for me because it doesnt recognize the --exclude parameter. (is it a bug too ?)