将我的 angular 项目从 10 更新到 12 后,我的 heroku 构建失败并显示以下输出。
$ ng build --configuration production --stats-json
- Generating browser application bundles (phase: setup)...
Compiling @angular/core : es2015 as esm2015
Compiling @angular/common : es2015 as esm2015
[...]
Compiling @angular/material/toolbar : es2015 as esm2015
Compiling @angular/router : es2015 as esm2015
Compiling ngx-filesize : es2015 as esm2015
Compiling @angular/cdk/drag-drop : es2015 as esm2015
✔ Browser application bundle generation complete.
- Generating ES5 bundles for differential loading...
✔ Browser application bundle generation complete.
error Command failed with signal "SIGKILL".
我怀疑它会因为资源不足而被杀死...
有人遇到过这种情况吗?
Heroku 正在将应用构建为 docker 镜像。
它在本地构建和运行良好。
更新:
我最终构建了 circle ci 并将图像推送到了 heroku。