I think this might be similar to #81, but I'm getting compiler errors instead of undefined keys.
Passing a predefined object reference to defineMessages fails, I'm guessing the code isn't following the reference in the Babel AST and instead assuming an object is directly defined:
TypeError: react-intl.macro: properties.map is not a function Learn more: https://www.npmjs.com/package/react-intl.macro
at Array.map (<anonymous>)
My use case is I have a shared library where the messages are defined, but the build process isn't working correctly for the sub module (different issues with Rollup). So I'm trying to import the messages in my app and forward them to defineMessages so they get picked up when I build the available translations.
I think this might be similar to #81, but I'm getting compiler errors instead of undefined keys.
Passing a predefined object reference to
defineMessages
fails, I'm guessing the code isn't following the reference in the Babel AST and instead assuming an object is directly defined:this fails with:
My use case is I have a shared library where the messages are defined, but the build process isn't working correctly for the sub module (different issues with Rollup). So I'm trying to import the messages in my app and forward them to defineMessages so they get picked up when I build the available translations.