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 run twice ? (angular 8.1.1)

See original GitHub issue

🐞 bug report

Affected Package

The issue is caused by package @angular/....

Ng Build run twice ? is it normal ?

angular-build-twice

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

just upgraded to v 8. v7 just compiled and build once.

Description

A clear and concise description of the problem...

I just make a build.bat and run it. build.bat contains ng b --prod --output-path …/crsappbuild/dest --base-href /

πŸ”¬ Minimal Reproduction

https://stackblitz.com/...

πŸ”₯ Exception or Error





🌍 Your Environment

Angular Version:






Angular CLI: 8.1.1
Node: 10.13.0
OS: win32 x64
Angular: 8.1.0
... common, compiler, core, forms, language-service
... platform-browser, platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.801.1
@angular-devkit/build-angular     0.801.1
@angular-devkit/build-optimizer   0.801.1
@angular-devkit/build-webpack     0.801.1
@angular-devkit/core              8.1.1
@angular-devkit/schematics        8.1.1
@angular/animations               8.1.1
@angular/cdk                      7.3.7
@angular/cli                      8.1.1
@angular/compiler-cli             8.1.1
@angular/material                 7.3.7
@ngtools/webpack                  8.1.1
@schematics/angular               8.1.1
@schematics/update                0.801.1
rxjs                              6.5.2
typescript                        3.4.5
webpack                           4.35.2

Anything else relevant?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
santoshyadavdevcommented, Jul 16, 2019

This is a feature called differential loading. Now we generate 2 bundles for es5 and es2015 respectively to serve smalled bundles on new browsers.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 15, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 8, ng build compile twice and duplicate files
The two seperate builds you are seeing are for different browser targets - the browser the user uses determines what files angular will...
Read more >
Angular 8, Ng Build Compile Twice And Duplicate ... - ADocLib
On the first terminal run the ng build command in watch mode to compile the To deploy your Angular application to GitHub Pages...
Read more >
angular/angular - Gitter
@rickvandermey no, I just typed ng build myprojectname ... You must install peer dependencies yourself. npm WARN codelyzer@4.2.1 requires a peer ofΒ ...
Read more >
ng build - Angular
Option Description Value Type Default Value ‑‑aot Build using Ahead of Time compilation. boolean true ‑‑base‑href Base url for the application being built. string ‑‑delete‑output‑path Delete...
Read more >
@angular/material | Yarn - Package Manager
The Angular team builds and maintains both common UI components and tools to help you build your own custom components. The team maintains...
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