Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object #778
-
scripts
The only difference i can see in the code is
tsconfig.json
vite.config
Node version: 19.8.1
Same error reported here #704. |
Beta Was this translation helpful? Give feedback.
Answered by
Strydom
Apr 13, 2023
Replies: 1 comment 4 replies
-
That's a userland problem: make sure to pass components to React and not something else. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found the problem, it is MUI library causing issues. Not sure why it only shows up on prod build though?
mui/material-ui#35233