Skip to content

FormattedMessage error when using it as a parent component #73

@arvinsim

Description

@arvinsim

I am using this approach as outlined in some of the answers in here

<FormattedMessage
  ....
>
  {placeholder => <input placeholder={placeholder} />}
</FormattedMessage>

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>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions