-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
Unable to run builds localy with 12.0.8 on WSL2 #33369
Comments
Hi, could you add a reproduction repository so we can investigate? |
Sorry, the code I'm working on is copyrighted :( UPD: this error always occur when webpack trying to scan sharp folder in node_modules. I tried deleting and adding some other modules but it was still the sharp module in the logs. |
So deleting I wouldn't need your code if you could create a simple reproduction (eg.: using
#32173 could be related. It was an update that made it to You could potentially try to upgrade to |
It appears that builds are working fine until
I can't check this because I'm using sharp outside of next/image in scope of my backend logic and without it installed build won't start due to typescript errors.
Installing |
Getting the same error on NextJS 12.0.8, Node v16.13.2 but with Material UI Icons. Building on Azure DevOps pipelines Windows agent with version: '2.196.2'
|
@ocasiom we need some code to verify/reproduce this, so we can investigate. It doesn't have to be your own project, just a public/minimal reproduction repository. |
@ocasiom , I was getting the same error while building NextJS project (12.0.10), I've fixed these by importing mui icons directly without destructing, Getting Error while build Able to build |
Thanks @neel-gaywala, we ended up using the babel plugin for material UI as recommended here: That seems to have solved the issue for us. |
Run
next info
(available from version 12.0.8 and up)No response
What version of Next.js are you using?
12.0.7
What version of Node.js are you using?
16.13.1
What browser are you using?
Chrome 97
What operating system are you using?
WSL2 Ubuntu 20.04 under Windows 10 Pro 21H2 19044.1466
How are you deploying your application?
Heroku
Describe the Bug
I am unable to create production builds with
npm run build
since I upgraded to 12.0.8:ulimit -n
outputs 4096 which should be more than enough for building the project, though increasing it up to 10k won't help. I was able to build my nextjs project only after rolling back to 12.0.7Expected Behavior
Next should build the project successfully
To Reproduce
—
The text was updated successfully, but these errors were encountered: