Build script returned non-zero exit code: 1

Hi, I am running into the exact same issue and error code. It just stopped working randomly yesterday. There are no breaking changes in my code. Build works fine locally, but it fails on Netlify. I cleared the cache and retried, didn’t work. Updated my packages, didn’t work. My client can’t use his application now… I can’t seem to solve it myself or find any help :frowning:

It seems as if this is some kind of bug because both our deployments failed yesterday without reason?

Edit: I found the solution. I updated yarn and all peer dependencies that were missing; deleted my cache (public folder, node_modules folder, .cache folder) and the yarn.lock, ran yarn install once again, pushed all changes and the site finally deployed just fine.

1 Like