Skip to content

"Can't import the named export" with TypeScript and yarn #852

Open
@jura120596

Description

@jura120596

I try add library:
import CountUp from "react-countup";
and
import {default as CountUp} from "react-countup";
But i got error:

Failed to compile.
./node_modules/react-countup/build/index.mjs
Can't import the named export 'CountUp' from non EcmaScript module (only default export is available)
error Command failed with exit code 1.

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