Stack Trace Not Helpful #23969
Replies: 5 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
Was able to do the same thing with @material-ui/icons. Had something importing from that but wasnt in package.json, npm install it, then resolved. Stack trace:
Again, this just sucks that nextjs couldn't be a little more clear on that issue haha :) That error message doesn't even indicate that the issue is related to @material-ui/icons. |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
Hey I just hope someone can find this and not spend as much time as I did :) Would be great to see some enhancements, but not a complainer. |
Beta Was this translation helpful? Give feedback.
-
The error can probably be improved, not entirely sure how exactly because it comes from React but we'll have a look. It does correctly say where the error happens though if you check the stacktrace it mentions this line:
So that probably uses a React hook. You can have a look at #9022, there's some issues if you installed multiple versions of React either manually or through dependencies. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug report
Admittedly, this is a weird one. But sharing in hopes that someone else doesn't have to suffer for HOURS like I did.
It may make sense to put this somewhere else, and I am not sure its even a "issue" so much as something that could be made easier.
Describe the bug
Then browse to the root page yielded
BUT, in my package.json, I checked for @material-ui/core depedencies, was not there.
and restart, resolved that stacktrace I was getting.
A clear and concise description of what the bug is.
To Reproduce
See above.
Expected behavior
Would be good to get a "not found" error message if that is possiible. Something indicating the library isn't there, rather than a stack trace indicating the execution of that code failed.
Screenshots
NA
System information
Additional context
Add any other context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions