Skip to content

Import Error: Cannot import named export 'forwardRef' from @gumlet/react-embed-player in ScandiPWA 6.2.1 #8

@devamanaly

Description

@devamanaly

When trying to import GumletPlayer from @gumlet/react-embed-player in a ScandiPWA 6.2.1 project with TypeScript, I encounter a compilation error.

Error Message:
Failed to compile.
./node_modules/@gumlet/react-embed-player/dist/index.mjs
Can't import the named export 'forwardRef' from non EcmaScript module (only default export is available)

Expected Behavior:
The GumletPlayer component should import successfully and work within the ScandiPWA application, maintaining TypeScript type safety.

Actual Behavior:
Webpack compilation fails with the error about unable to import named exports from non-ECMAScript module, specifically related to forwardRef.

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