-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Getting "Unexpected end of JSON input" when building a next.js app #44485
Comments
Hey @IsmailAlamKhan, thanks for the report and for using Material UI 😊. Could you provide a reproduction? This would help debug the issue a lot. For example, if you could share a repository with your project, that would work. Even better if it's a minimal reproduction. Thank you! |
Hey thanks a lot for responding I really appreciate it. I wasn't able to reproduce this on another project but one thing is I was on Node.JS 23 so I asked my colleague to try it. He had Node.JS 22 and the same project built without any issues. So I tried the same on Node.JS 22 and it works now. So maybe it's an issue with Node.JS 23? Also one thing the same project built on my Windows PC without any issues. |
I having the same problem and get this error when compiling with
|
Same problem suffered when running
dependencies of mui in the package.json are:
|
After switching the node from v23 to v22.11.0(LTS) and cleaning up the .next folder and then re-build, the problem was resolved. |
Steps to reproduce
Steps:
1.
2.
3.
Current behavior
No response
Expected behavior
No response
Context
I have been using Material UI on my next.js project since a long time and haven't face this issue but suddenly today when I was trying to build the project I keep getting the following error
I have searched a lot on this but no solution fixed this issue, if required I can provide the package.json as well.
Your environment
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: