Questions tagged [angular-cli-v8]

Angular CLI v8 related questions

The Angular CLI is a tool to initialize, develop, scaffold and maintain Angular applications

Usage:

  • This tag is intended for questions which ask about Angular CLI issues or usage.
  • Angular related questions should use the angular tag.

Asking a question

  • Mention the versions of Angular and Angular CLI that you're using.
  • Reduce your issue to a small example Post a reduced working code on stackblitz.com.

  • If there's a bug (or some unintentional behavior), try to troubleshoot the problem. (If it's a bug report, please create a new issue at Angular CLI's Github repository instead.)

Learn more

To learn more about Angular CLI, visit the following resources to help you get started:

59 questions
3
votes
1 answer

Angular CLI 8 update - URLs not prefixed with base href anymore

Problem After updating our Angular application to version 8 (including Angular CLI), URLs are not prefixed with the base href provided in the angular.json file anymore, which essentially breaks our application Previous, desired behaviour When…
tuomasi
  • 41
  • 7
2
votes
1 answer

Critical dependency: the request of a dependency is an expression (Angular CLI Warning)

In here, I'm trying to dynamically load lazy child routes inside a lazy routing module. For an example: const serverResponse = [ { path: "transaction", children: [ { path: "finance", modulePath:…
2
votes
0 answers

Angular Library - NullInjectorError: StaticInjectorError(AppModule)[NgClassImpl -> ElementRef]

I do have a problem. I'm building a component in a Angular Library:
2
votes
2 answers

angular cli duplicate chunk name after ng build

I'm developing Angular v8 app with using Angular CLI v8. I have dashboard.module.ts And after executing command ng-build I see in dist folder files with names: dashboard-dashboard-module.js Why not dashboard-module.js? Why it's duplicate…
A. Gladkiy
  • 3,134
  • 5
  • 38
  • 82
2
votes
1 answer

How to pass configuration into indexTransform in angular-cli?

I'd like to use the indexTransform functionality in an angular 8 (angular-cli) project, but the configuration property of targetOptions remains empty. I've tried the example project here:…
Franz
  • 115
  • 9
1
vote
1 answer

How to cast event to return HttpEventType.Response when subscribe data?

I work on angular 8 I face issue I can't cast event to return HttpEventType.Response when subscribe data to get progress bar upload component service PostUpload(selectedoptionsId, file) { const formData: FormData = new FormData(); …
1
vote
0 answers

core.js?09c9:4002 ERROR RangeError: Maximum call stack size exceeded in zone.js / Angular CLI - 8.3.29 version

Migrating from Angular 7 to 8 version update. Getting this error, after navigating to form page. User can't able to access the form page. core.js?09c9:4002 ERROR RangeError: Maximum call stack size exceeded at ZoneDelegate.invoke…
Prasanth
  • 31
  • 2
1
vote
1 answer

Angular 8 application accessing proxied Spring Boot application on localhost over https

I have written a Spring Boot backend and an Angular 8 frontend that I am packaging together. So when deployed, both use the same port and this works nicely. During develpoment, I want both applications to run separately and have set this up as…
Urs Beeli
  • 746
  • 1
  • 13
  • 30
1
vote
0 answers

getMac npm angular cli

I have install this: npm install --save getmac and insert in my home.components.ts this code import getMAC, { isMAC } from 'getmac'; and in ngOnInit this code text: console.log(getMAC()); The Console Error is: core.js:5873 ERROR Error: failed to…
Daniel
  • 21
  • 3
1
vote
1 answer

Angular CLI 8 - Formly custom select for JSON schema (draft 4)

I've got some difficulties getting my JSON schema (draft 4) to fully work with Angular-Formly forms custom templates. I've made several templates for various data types and I'm stuck with a template for a dropdown menu using the select tag in…
1
vote
0 answers

"Module not found" for typescript-only library in Angular compiler

I have an Angular application that I am switching over to use the Angular compiler. This application uses a library that I also created, which was built and packaged using webpack. When I try to build the library using ng build --prod, there is an…
Hans
  • 2,448
  • 2
  • 24
  • 30
1
vote
1 answer

How to inject scripts to index html file in the generated index.html in dist/?

I have an index html file and i need to inject some configuration based scrips in production/staging environments. Workspace index.html Generated index.html in dist/my-app through ng build …
1
vote
1 answer

How to include all global styles within FOLDER?

I have read through a dozen related questions on here about the Angular CLI and global styles, as well as the relevant documentation, but I cannot seem to find how to include a folder of styles. My project still has the generated styles.scss file. I…
Sam Claus
  • 1,807
  • 23
  • 39
1
vote
1 answer

How to define "base href " dynamically in Angular 8 application from index.html?

How to define "base href " dynamically in Angular 8 application from index.html? Earlier I used --base-href, but now it is not supported.
John Doe
  • 3,794
  • 9
  • 40
  • 72
1
vote
0 answers

angular 8 with ivy cannot build

I migrated my package to angular 8 and i want to use ivy because i use lazy loaded modules. When i run ng serve i get the following error message. I have no idea how to track down this issue. Has anybody solved this or had a similar issue? chunk…
NinjaOnSafari
  • 998
  • 1
  • 8
  • 32