Skip to content

Can't import the named export 'Component' from non EcmaScript module (only default export is available) #1395

@danilofuchs

Description

@danilofuchs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions