Questions tagged [ng-build]

223 questions
1
vote
1 answer

Angular Deployment assets path

Build project in Angular7. After build through command ng-build --prod --base-href /client/product/v2/ deploy in vs folder, but folder structure is : www.domain.com/client/product/vs All the images are in assets folder and after build assets…
faisaljanjua
  • 886
  • 2
  • 13
  • 28
1
vote
1 answer

ng-material-multilevel-menu not working in Angular 7

I'm using this plugin for a multi-level menu on angular 7. It works fine when doing ng serve, but doesn't work when doing ng build. Getting this error when building using 'ng build --configuration=dev'. ERROR in…
jijo
  • 765
  • 3
  • 18
  • 35
1
vote
1 answer

ERROR in : Cannot determine the module for class SomeComponent in /path to that component.ts! Add SomeComponent to the NgModule to fix it

I have angular 6 / node js system which is already in live. So now i need to move the latest changes to live server and before that to dev server. Both are same environment that is Linux Server (RHEL7.6) and am in working windows. So am getting…
Deepak Preman
  • 113
  • 1
  • 11
1
vote
1 answer

How to host Angular application with Kestrel

I am trying to deploy an Angular 7 application with .NET Core using Kestrel using the FileProvider extension. I have created the angular app , i have ng build it and i copied the files inside dist .NET Porject. Startup public void…
Bercovici Adrian
  • 8,794
  • 17
  • 73
  • 152
1
vote
0 answers

ng build --aot interprets :host pseudo class selector incorrectly

I have using pseudo class selector in my .less css file to change the background color when a product is selected. :host(.selected .message) { background: blue; } It works fine with ng build JIT, but doesn't work for AOT. When I inspect the…
topcan5
  • 1,511
  • 8
  • 30
  • 54
1
vote
1 answer

Angular AOT compilation fails due to 'Can't construct a query for the property ..'

I'm trying to dynamically populate a table with custom components that works perfectly with JIT compilation but throws an error when using AOT. I've also tried using forwardRef on the ViewChildren() decorator but it doesn't seem to have any effect.…
1
vote
0 answers

is it possible to reverse engineer AOT angular build to source code in angular 6?

I lost my source code due to HD crash :( I do have my uploaded Build of angular 6 project. Is there any way to reverse those bundles to my source code ? Please suggest related algos or any tools for the same. it would be really helpful for all devs…
paras shah
  • 861
  • 2
  • 9
  • 23
1
vote
0 answers

Angular 6 and Polyfills.ts

I have an application of angular 6 and I need it to work in IE10 and IE11, I'm configuring as indicated by the angular web , but I can not make it work in IE when I run "ng build --prod" (with the command "ng serve" no I have problems). the…
1
vote
1 answer

How to avoid 3rd parties libraries to be included into 'vendor.js' on 'ng- build? I want to use CDN instead

I'm working on Angular 6 app using Angular-CLI. When I make ng build compiling generate also a vendor.js file which includes all libraries I installed with NPM. That's ok for Angular framework itself due to build process perform some optimizations…
Noisemaker
  • 181
  • 7
1
vote
2 answers

Angular 6 library: ng build library in CI pipeline to create lib release

I'm trying to build an Angular 6 library for CI integration without integrate it into an Angular App. (for numerous reasons) What i have done so far is: create a package.json in order to install all the lib's dependencies create an angular.json…
sebastian
  • 11
  • 1
1
vote
0 answers

Unable to change or give custom CSS for ng-datepicker

I am trying to give custom CSS for bs-datepicker. But, its not accepting any change from component.css. I tried adding a class name in the node file of bs-datepicker in node_modules and making css changes using that class name, but the changes are…
BlizZard
  • 587
  • 5
  • 22
1
vote
1 answer

ng build Errors with not an ngModule

I am trying to run ng build on my angular project but I keep getting the error ERROR in Unexpected value 'MatTooltipModule in /Users/strypeez/Dropbox/gosco-webNEW/gosco-webUPTODATE/node_modules/@angular/material/tooltip/typings/index.d.ts' imported…
strypeez
  • 175
  • 1
  • 3
  • 16
1
vote
3 answers

Angular5+ Illegal state: Could not load the summary for directive RouterOutlet

If i try to build my Angular App with ng build --prod --aot, i got always this Error: ERROR in : Illegal state: Could not load the summary for directive RouterOutlet in C:/Path-To-Project/node_modules/@angular/Router/router.d.ts. If I compile my…
1
vote
0 answers

AppModule is not an NgModule

I keep getting this error when I run ng build. I have tried deleting node_modules as well as global npm_cache directories and reinstalling. Most of the answers I've found to this problem are a couple years old, so downgrading typescript versions as…
Don Sartain
  • 557
  • 9
  • 25
1
vote
1 answer

Deploy Angular5 app to Tomcat with environment.{{ENV}}.ts

I have an angular app, with environment configs which helps it to connect to different API endpoints based on the configuration. ng build --prod --environment={{ENV}} is how is build the app. I copy the artifacts to the folder where tomcat hosts…
Pratik
  • 1,122
  • 8
  • 26