angular-cli: 92% after chunk asset optimization SourceMapDevToolPlugin vendor.js generate SourceMapKilled

Bug Report or Feature Request (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

- [ ] new
- [x ] build
- [ x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

node 10.13 npm 6.4.1

Repro steps

ng new my-app ng serve

The log given by the failure

Desired functionality

92% after chunk asset optimization SourceMapDevToolPlugin vendor.js generate SourceMapKilled

Mention any other details that might be useful

In centos, it happened. But in windows, it is normal.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (3 by maintainers)

Most upvoted comments

Well, it appears to be an OOM issue. My test environment is on GCP. Once I bumped instance from micro (512MB RAM) to small (1.7G RAM). This problem disappeared.

Can’t believe the fact that nowadays Javascript library requires that much resource to “compile”…

Try this, worked for me: ng serve --sourceMap=false

same as @hellocomrade. upgraded from 1GB to 2GB RAM on digital ocean and it started working.