babel-plugin-formatjs, babel-plugin-react-intl, and interpolated message IDs. #2905
Unanswered
chrisdchow
asked this question in
Q&A
Replies: 1 comment
-
yeah this seems like a regression. Can you create a GH ticket to track as a bug? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying to leverage dynamically generated message IDs for my React app using latest major versions of
react-intl
,formatjs/cli
andbabel-plugin-formatjs
. I'm upgrading from older version ofreact-intl
andformats/cli
. The extraction is working fine, however I'm running into problems with thebabel-plugin-formatjs
build steps. The online documentation was unhelpful and I did not find anything in the past GitHub issues.Specifically,
[React Intl] Messages must be statically evaluate-able for extraction.
for the below:I know this ID isn't extracted by
formatjs/cli
, and I would like to prevent/ignore suchbabel-plugin-formatjs
errors. It looks likebabel-plugin-formatjs
is based onbabel-plugin-react-intl
which previously supported my use case by ignoring it when the component is missing thedefaultMessage
property. formatjs/babel-plugin-react-intl#62. I would appreciate any assistance on the matter. Thank you.Beta Was this translation helpful? Give feedback.
All reactions