Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
christophberinger opened this issue Jul 14, 2022 · 3 comments
Open

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

christophberinger opened this issue Jul 14, 2022 · 3 comments

Comments

@christophberinger
Copy link

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
Copy link

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

@yakovlevkll
Copy link

@pablodavila95 hi there, any solutions for this?

@pablodavila95
Copy link

Sorry, I'm no longer using the library. But as far as I can remember, I couldn't find a solution for this. @yakovlevkll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants