You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After 2 days of debugging, I found that this plugin is not compatible with having ['@babel/plugin-transform-react-constant-elements', { allowMutablePropsOnTags: ['FormattedMessage'] }] in the plugins array in .babelrc.js (neither before nor after the react-intl-auto entry).
Running the
extract-messages
CLI command, I get empty objects in each of the expected dictionary files.After digging a bit through the source code, this is the culprit:
Commenting out these lines gets the script in working order.
It seems that the Babel plugin that’s added to the
presets
array, fails to pass themetadata
property along that contains the messages.All my dependencies are up-to-date.
Hope this helps!
The text was updated successfully, but these errors were encountered: