Skip to content

Tag: formatjs

Ignoring specific file path during Format.Js message extraction

When using Create React App and TypeScript, a file is auto-generated in the src directory: react-app-env.d.ts. This file seems necessary to support image imports as discussed here: https://github.com/facebook/create-react-app/issues/6560. When using Format.JS, I extract messages using the following command: But unfortunately this results in this error: I need to process both .ts and .tsx files. I have tried to hack the