Our deploy code hasn't changed, and our Webpack version ("webpack": "^4.41.0") hasn't changed, and deploys still work successfully for other (non-Heroku) servers.
However, just a couple days ago, Heroku deploy stopped working with this error:
2878 <s> [webpack.Progress] 70% building 4114/4114 modules 0 active
2879 npm ERR! code ELIFECYCLE
2880 npm ERR! errno 1
2881 npm ERR! [email protected] build-heroku: 'npm run clean && webpack --progress --bail --env dist -p'
2882 npm ERR! Exit status 1
2883 npm ERR!
2884 npm ERR! Failed at the [email protected] build-heroku script.
Our /package.json has:
"heroku-postbuild": "cd frontend && npm install --only=dev && npm install && npm run build"
And our /frontend/package.json has:
"scripts": {
"clean": "rimraf dist/*",
"build": "npm run clean && webpack --progress --bail --env dist -p && rm -r prod 2>/dev/null || : && mv dist prod"
}
So why does Webpack build only get to 70% in Heroku now? Has anyone else seen this happen?
