For the record I’m suffering the same issue since a few days ago, with no code changes and in our case using Gatsby V2. Site builds locally so this looks indeed like a Netlify issue. In my case the error happens after page queries are made:
7:33:28 PM: success run page queries - 11.151s - 530/530 47.53/s
7:40:41 PM: Killed
7:40:41 PM: error Command failed with exit code 137.
7:40:41 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
My site name is “slashdata-website” in case you want to check, and for building I’ve been using: gatsby build && ps auxw ; false
As part of the errors I’m getting a bunch of:
7:40:42 PM: Started saving yarn cache
7:40:44 PM: events.js:174
7:40:44 PM: throw er; // Unhandled 'error' event
7:40:44 PM: ^
7:40:44 PM: Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
7:40:44 PM: at process.target.send (internal/child_process.js:636:16)
7:40:44 PM: at reportSuccess (/opt/build/repo/node_modules/jest-worker/build/workers/processChild.js:83:11)
7:40:44 PM: at tryCatcher (/opt/build/repo/node_modules/bluebird/js/release/util.js:16:23)
7:40:44 PM: at Promise._settlePromiseFromHandler (/opt/build/repo/node_modules/bluebird/js/release/promise.js:547:31)
7:40:44 PM: at Promise._settlePromise (/opt/build/repo/node_modules/bluebird/js/release/promise.js:604:18)
7:40:44 PM: at Promise._settlePromise0 (/opt/build/repo/node_modules/bluebird/js/release/promise.js:649:10)
7:40:44 PM: at Promise._settlePromises (/opt/build/repo/node_modules/bluebird/js/release/promise.js:729:18)
7:40:44 PM: at Promise._fulfill (/opt/build/repo/node_modules/bluebird/js/release/promise.js:673:18)
7:40:44 PM: at MappingPromiseArray.PromiseArray._resolve
Any tip appreciated.