Build error: expected string or function, but got: object

This issue has been tracked since 2022-07-14.


thank you for the great library which works great so far. We currently use it in an Astro Js environment within a react component, where it perfectly works in dev mode, but throws a build error like

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

Typically, this is related to named/default exports and the corresponding import Synatx (see, but this is not the solution here.

Do you have any idea, what causes this error and how to fix it?

Thanks in advance.


pablodavila95 wrote this answer on 2022-09-14

@christophberinger I'm getting the same issue. Did you happen to find a fix?

More Details About Repo
Owner Name twobin
Repo Name react-lazyload
Full Name twobin/react-lazyload
Language JavaScript
Created Date 2015-08-07
Updated Date 2022-11-29
Star Count 5639
Watcher Count 52
Fork Count 482
Issue Count 153


Issue Title Created Date Updated Date