question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ng build --prod crashes at 10%

See original GitHub issue

Bug Report or Feature Request (mark with an x)

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

Versions.

Angular CLI: 1.5.0
Node: 8.7.0
OS: darwin x64
Angular: 5.0.1
... animations, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic, router

@angular/cdk: 5.0.0-rc0
@angular/cli: 1.5.0
@angular/material: 5.0.0-rc0
@angular-devkit/build-optimizer: 0.0.32
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.35
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.0
@schematics/angular: 0.1.2
typescript: 2.6.1
webpack: 3.8.1

Repro steps.

ng build --prod crashes at the following stage: 10% building modules 7/7 modules 0 active

process just exists with no error

The log given by the failure.

Desired functionality.

Mention any other details that might be useful.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:20 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
imvasencommented, Jan 22, 2018

I’ve been having the same issue (crashing at 10%). Reading at the comments written by the angular team on ./src/app/environment.ts it says that if you run ng build --env=prod it will use environment.prod.ts. So I trie to run ng build --env=prod instead of ng build -prod and work. I hope this to solve your problem, leave me a comment about how it went.

1reaction
eyalhakimcommented, Nov 11, 2017

@PillowPillow i cannot thank you enough! Found two rouge folders that ended with .ts and once renaming them project builds again!

You are a life saver!

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm run build:prod crashing in Ubuntu 16.04 but not Windows ...
I'm trying to run "npm run build:prod", but I'm getting errors on Ubuntu 16.04 which I don't see in Windows 10. I have...
Read more >
Ahead-of-time (AOT) compilation - Angular
Compiles your application and libraries at build time. This is the default starting in Angular 9. When you run the ng build (build...
Read more >
Weird ng build crash -- losing my mind! : r/angular - Reddit
Now any time I run ng serve or ng build, this error appears. I have tried downgrading NPM, reinstalling, clearing the cache and...
Read more >
node server crashes #9314 - Asp.Net Zero Support
I'm concerned that when deployed the fault will happen and crash the ... build && ng build --prod", "start": "gulp buildDev && ng...
Read more >
How to live build an angular workspace project - Google Groups
`ng server` crash every time I rebuild one of the libraries because the ... can run ng build --prod to rebuild the dist...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found