ng build --prod crashes at 10%
See original GitHub issueBug 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:
- Created 6 years ago
- Comments:20 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 useenvironment.prod.ts
. So I trie to runng build --env=prod
instead ofng build -prod
and work. I hope this to solve your problem, leave me a comment about how it went.@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!