Questions tagged [ng-build]
223 questions
0
votes
0 answers
Angular 6 : Code getting obfuscated while serving the app. Is this expected?
http://localhost:4200/#/home
Hi!
I am trying to serve my app using ng serve --open.
I am now getting the # appended to the localhost:4200, because of this, I am not able to see my code while debugging the source code using breakpoints.
I am…

new_coder
- 67
- 10
0
votes
1 answer
ng build --prod fails when I tried importing a javascript file in app-module
I have to import a javascript file in my app module
import { OtherComponent } from './node_modules/blahblah/OtherComponent.js'
Notice that this OtherComponent is a javascript file already.
Then inside my @NgModule, I added this component to my…

bgail123
- 11
- 1
0
votes
1 answer
if im using lazy loading module my angular application main.bundle.js file size is decreased while build
How can i reduce my vendor.bundle.js and main.bundle.js file size while build my application using
ng build --aot false --prod
if im using lazy loading module my angular application main.bundle.js file size is decreased while build.

Senthil Vel
- 23
- 7
0
votes
2 answers
ngbuild changing placeholder according to environment
I have an Angular 5 project. To get the package to deploy, I'm using NG BUILD command. But, I have some placeholders that I need to change accordingly with the environment. For example, I have one configuration file placeholder. To PROD I need to…

Fabio
- 77
- 2
- 3
- 5
0
votes
1 answer
Error while compiling Angular6 project
This is the first time I try to build an Angular project, sorry if i don't understand everything very well.
I found on Google the command "ng build --prod" so I tried it.
At the beginning, everything looks ok until an error occure:
ERROR in…

Fantomiald
- 55
- 1
- 11
0
votes
0 answers
reduce from angular 6 to angular 4
I wish to reduce down from angular 6 to angular 4. Angular 6 has been more of a headache then what its worth.
I started to notice that when I ran ng serve I would get an accurate version of my site but when I ran ng build I would get a version…

weridpotato
- 261
- 1
- 3
- 11
0
votes
1 answer
What might cause an Uncaught TypeError with an Object Prototype that occurs in the AOT build but not in the development environment?
I have made an Angular application that tests well in the developement environment. I have ported it to a sandbox server and run ng build with associated parameters for base-href and environment. When I run the application in the sandbox…

Jared Clemence
- 1,062
- 11
- 26
0
votes
1 answer
Angular 2 Cli application 404 Error on hard refresh
When building using ng build, the build succeeds and app can be accessed.
However, when build in production mode using:
ng build --prod
It gives me an error:
"TypeError: Cannot convert undefined or null to object".

Sudhir Chaudhary
- 1
- 1
0
votes
1 answer
Angular5: Vendor bundle not getting updated in Jenkins build
I have an angular5 application, i use webpack bundler and yarn package manager. I setup the application by running the following commands:
yarn global add @angular/cli@latest
yarn
It installs angular-cli, all the respective dependencies/libraries…

hakuna
- 6,243
- 10
- 52
- 77
0
votes
1 answer
ERROR in : Illegal state: Could not load the summary for directive CdkObserveContent in node_modules/@angular/cdk/observers/typings/index.d.ts
I am getting an error as below on my Angular 5 application. I am using Angular CLI and running from VSCode.
ERROR in : Illegal state: Could not load the summary for directive
CdkObserveContent in
…

Sibeesh Venu
- 18,755
- 12
- 103
- 140
0
votes
1 answer
Angular post-build step on Windows
I'm running my build with ng build --watch, and I'd like to run a batch file after each build. How do I go about this?

harriyott
- 10,505
- 10
- 64
- 103
0
votes
0 answers
Build/Publish angular 5 and ASP.NET Core 2.0 Application
As ASP.NET Core and Angular are latest technologies so i build my management application using them now i need to deploy it on windows shared hosting and i am getting lot of issues, i don't need solution to those issues.But if any one can provide me…

Rizwan Ali Sabir
- 468
- 1
- 7
- 18
0
votes
1 answer
Angular CLI 1.2.6 Stopping at 14% on ng build -prod
I am at my wits end here and not sure what to do next.
Here is the only output I get when I run ng build --prod
14% building modules 40/40 modules 0 active
I have tried adding the verbose flag but it makes no difference
I have tried starting a new…

Daniel Horne
- 53
- 7
0
votes
1 answer
MsBuild: 'ng' is not recognized as an internal or external command
I am trying to build my angular solution using MsBuilds.
Following is my code snippet
>
>

Deepanshu Kalra
- 419
- 2
- 9
- 23
0
votes
1 answer
Angular dist folder gone when rebuilding
I am using Angular-cli created an angular project in my server, for example "myNgProject" . And set the ngnix root location to myNgProject/dist. Everything is good. I manage the project version with git, so every time I pull the new update from…

joker szeto
- 84
- 1
- 2