-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FormattedMessage error when using it as a parent component #73
Comments
Knock Knock :) I am having the same issue, cannot extract messages when using a render prop pattern. Anyone has any clue how to solve this ? |
I have the same issue when I do: const info = {
name: (
<FormattedMessage
id="app.name"
defaultMessage="Your name"
/>
),
} |
I have same issue. Is there anyone resolved this? |
Any updates on this? |
I solved this problem by combining using defineMessages of react-intl.macro and injectInt of react-int. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using this approach as outlined in some of the answers in here
However, I get this error when trying to extract the message strings
TypeError: react-intl.macro: referencePath.parentPath.get(...).filter is not a function Learn more: https://www.npmjs.com/package/react-intl.macro at Array.map (<anonymous>)
The text was updated successfully, but these errors were encountered: