Open ArnabChatterjee20k opened 1 month ago
Same issue but in Astro.js: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
Haven't looked into this too deeply but I think this might be a client-only component: This works just fine:
import { ClientOnly } from "remix-utils/client-only";
// in component
<ClientOnly>
{() => (
<Marquee pauseOnHover>
{apps.map((app) => (
<Pill key={app.name} {...app} />
))}
</Marquee>
)}
</ClientOnly>
In your astro file use <Marquee client:only="react" />
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.