You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
./node_modules/@mui/lab/LoadingButton/LoadingButton.js + 3 modules
Unexpected end of JSON input
./node_modules/@mui/material/Autocomplete/Autocomplete.js + 6 modules
Unexpected end of JSON input
./node_modules/@mui/material/Backdrop/Backdrop.js + 1 modules
Unexpected end of JSON input
./node_modules/@mui/material/Button/Button.js + 3 modules
Unexpected end of JSON input
./node_modules/@mui/material/ButtonBase/ButtonBase.js + 6 modules
Unexpected end of JSON input
I have searched a lot on this but no solution fixed this issue, if required I can provide the package.json as well.
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 npm run build
[email protected] build
> next build
▲ Next.js 14.2.11
- Environments: .env
Creating an optimized production build ...
Failed to compile.
./node_modules/@mui/material/Avatar/Avatar.js + 2 modules
Unexpected end of JSON input
./node_modules/@mui/material/Box/Box.js + 2 modules
Unexpected end of JSON input
./node_modules/@mui/material/Button/Button.js + 3 modules
Unexpected end of JSON input
./node_modules/@mui/material/ButtonBase/ButtonBase.js + 9 modules
Unexpected end of JSON input
./node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js + 1 modules
Unexpected end of JSON input
> Build failed because of webpack errors
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: