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
Do you want to request a feature or report a bug?:
Bug or support
What is the current behavior?:
In my project I managed JS module to handle internationalization. It is based on react-intl but extends it with some custom components, predefined configs, extra features etc.
Because of that, I wanted to avoid necessity of imports from react-intl AND my own module, so decided to export required react-intl elements via my modules' index.js file.
Everything works great, but I figured out that when I run npm script to extract messages with extract-react-intl-messages, it does not work any more. It creates files, but there are no messages. Something like on screenshots below.
If I import defineMessages directly from react-intl it works as expected.
What is the expected behavior?:
I expect it to work exactly the same with both variants. Not sure why it's not working correctly. defineMessages is not any special kind of function. In fact, it does nothing except returning passed values.
The text was updated successfully, but these errors were encountered:
Edit:
I can't see babel-plugin-react-intl in dependensies. Where do You use it exactly? I found in the docs, that it can get some options (defined in babel.rc) and one of them is moduleSourceName (which defaults to "react-intl"). That enables user to set custom module/path. @akameco, maybe You could include it in this project?
node
version: 10.4.1npm
version: 6.1.0Do you want to request a feature or report a bug?:
Bug or support
What is the current behavior?:
In my project I managed JS module to handle internationalization. It is based on react-intl but extends it with some custom components, predefined configs, extra features etc.
Because of that, I wanted to avoid necessity of imports from react-intl AND my own module, so decided to export required react-intl elements via my modules' index.js file.
Everything works great, but I figured out that when I run npm script to extract messages with extract-react-intl-messages, it does not work any more. It creates files, but there are no messages. Something like on screenshots below.
If I import defineMessages directly from react-intl it works as expected.
What is the expected behavior?:
I expect it to work exactly the same with both variants. Not sure why it's not working correctly. defineMessages is not any special kind of function. In fact, it does nothing except returning passed values.
The text was updated successfully, but these errors were encountered: