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

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

Hey,

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 https://bobbyhadz.com/blog/react-element-type-is-invalid-expected-string-but-got), but this is not the solution here.

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

Thanks in advance.

Cheers,
Christoph

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

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date