NextJS 15.4.1 && 15.4.2 - Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. #81876
Replies: 5 comments 10 replies
-
|
Error: Minified React error #130; visit https://react.dev/errors/130?args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings. |
Beta Was this translation helpful? Give feedback.
-
|
Same issue with the latest 15.4.3 |
Beta Was this translation helpful? Give feedback.
-
|
I have written a minimal reproduction sample here: https://codesandbox.io/p/devbox/n9rftd Some takeaways:
This smells like some aggressive optimization. |
Beta Was this translation helpful? Give feedback.
-
|
we just had a similar issue (not sure if same):
|
Beta Was this translation helpful? Give feedback.
-
|
We ran into the same issue in production where Elements using I recorded a video of the issue where I isolated the problem as good as possible in a blank project: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.
Unfortunately I cannot reproduce with a fresh installation of nextJS, however as soon as i go into our AUTH page(s), this happen and the system crash. Posting here just trying to index this error on google, and hopefully having somebody else like me having the same issue.
The only error we're getting is:
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.
Beta Was this translation helpful? Give feedback.
All reactions