Next.js Discord

Discord Forum

updated to react 19 and next 15 but keep getting element type invalid error expected a string or cla

Unanswered
Beveren posted this in #help-forum
Open in Discord
BeverenOP
const IconComponent = useMemo(()=> {
return React.lazy(() => import(dynamic import link).then(module) => {
default: module.default
})
}
<IconComponent passing a bunch of props />

1 Reply

BeverenOP
element type invalid error expected a string or class function but got object