When using create-react-app with Typescript, I cannot complete a successful build.
Failed to compile.
./node_modules/react-intl/dist/components/message.mjs
Can't import the named export 'Component' from non EcmaScript module (only default export is available)
Expected behavior
Should build
Current behavior
Does not build
Step to reproduce for BUG REPORT
yarn add react-intl@3.1.0
Your Environment
| Executable |
Version |
npm ls react-intl |
3.1.0 |
npm ls react |
16.8.6 |
yarn --version |
1.16.0 |
node --version |
10.16.0 |
| OS |
Version |
| MacOS Mojave |
10.14.6 |