Skip to content

react-fast-marquee default import returns module object with Vite 8 + React 19 #141

Description

@rakib-hasan-78

When importing the package using the documented syntax:

import Marquee from "react-fast-marquee";

React throws:

Element type is invalid: expected a string (for built-in components) or a class/function but got: object.

Logging the import shows:

{
default: {
$$typeof: Symbol(react.forward_ref),
render: ƒ
},
__esModule: true
}

The component works when using:

import MarqueeModule from "react-fast-marquee";

const Marquee = MarqueeModule.default;

but the documented default import does not work.

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