How can I find out which specific Next.js dependency might be causing the build to exit with code 1?

Question

Grade: Education Subject: Support
How can I find out which specific Next.js dependency might be causing the build to exit with code 1?
Asked by:
100 Viewed 100 Answers

Answer (100)

Best Answer
(262)
If you suspect a dependency issue, try running `npm install` or `yarn install` again. You can also try isolating the problem by commenting out or temporarily removing recently added or updated dependencies from your `package.json` and attempting the build again.