-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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. |
The evidence points towards a Node 23 issue. May I ask you to open an issue on that repo so we can continue to investigate? cc: @Janpot, in case you have a clue about what might be going on. |
work for me |
Hey @DiegoAndai Sorry for the late response got a bit busy, let create an open issue there thanks. |
looks like it has been reported and fixed in node.js 23.3.0. Have you tried that version? |
It's working as expected with v23.4.0 as well. |
Closing as it was fixed on Node's side: nodejs/node#55826 |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @IsmailAlamKhan How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
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: