formatjs icon indicating copy to clipboard operation
formatjs copied to clipboard

Extraction gets an empty en.json

Open moonerr opened this issue 3 years ago • 0 comments

Which package?

formatjs/cli I think

Describe the bug

Recently our application has upgraded the typescript and React 18. Formatjs has also been kept up to date, version 5.0.8. But when I run the cmd yarn extract 'src/**/*.ts*' --ignore='**/*.d.ts' --out-file lang/en.json --id-interpolation-pattern '[sha512:contenthash:base64:6]' The file produced en.json is empty with only a { } image

Sorry I could not reproduce it. Just wondering if anybody knows what can cause this issue.

Desktop (please complete the following information):

  • OS: [Win10
  • Browser: Chrome
  • Version: 104

Additional context

typeScript 4.3.5 React 18.2.0

moonerr avatar Aug 11 '22 04:08 moonerr