Questions tagged [angular8]

Questions about Angular version 8, the web framework from Google. Use this tag for Angular questions which are specific to only version 8. Use tag Angular for any Angular questions which are not specific to an individual version.

Questions about Angular version 8, the web framework from Google.

Angular version 8 is released on May 28, 2019.

You can read more about Angular version 8 here

See the changelog for what changed in version 8.

4737 questions
326
votes
9 answers

How should I use the new static option for @ViewChild in Angular 8?

How should I configure the new Angular 8 view child? @ViewChild('searchText', {read: ElementRef, static: false}) public searchTextInput: ElementRef; vs @ViewChild('searchText', {read: ElementRef, static: true}) public searchTextInput:…
Patrik Laszlo
  • 4,906
  • 8
  • 24
  • 36
182
votes
10 answers

Angular 8 - Lazy loading modules : Error TS1323: Dynamic import is only supported when '--module' flag is 'commonjs' or 'esNext'

When I updated Angular from 7 to Angular 8, getting error for lazy loading modules I have tried the options, which are there in the angular upgradation guide Made the below changes: Before loadChildren: '../feature/path/sample- …
RajuPedda
  • 3,141
  • 3
  • 14
  • 27
161
votes
10 answers

Repository is not clean. Please commit or stash any changes before updating In Angular 8

Error Repository is not clean. Please commit or stash any changes before updating when i have updated from version 7 to Angular 8. Angular Guide for upgrade https://update.angular.io/#7.0:8.0 D:\app-test> ng update @angular/cli @angular/core …
afeef
  • 4,396
  • 11
  • 35
  • 65
153
votes
12 answers

Job name "..getProjectMetadata" does not exist

I updated my angular to v9 and when I try to go back in v8, I receive this error. I have already tried the following: uninstall -global angular/cli uninstall angular/cli go back to my last package.json delete node_module folder delete repo This…
Guillaume Gaujac
  • 1,661
  • 2
  • 7
  • 8
86
votes
13 answers

How do I support Internet Explorer in an Angular 8 application?

When I generate a project with Angular CLI (8.0.0), I run ng serve, open the application up in Internet Explorer and I am presented with a blank screen. I had a look at the polyfills.ts files and I uncommented the following lines: import…
James Barrett
  • 2,757
  • 4
  • 25
  • 35
75
votes
11 answers

Call retries were exceeded exception while ng build

I am facing an exception while ng build (generating ES5 bundles for differential loading...) An unhandled exception occured: Call retires were exceeded Used versions: Angular-CLI: 8.3.20 Angular: 8.2.7 Node: 12.12.1 Also in logs, it is…
Savan Gadhiya
  • 1,082
  • 2
  • 11
  • 16
68
votes
12 answers

NgRX effects - Type 'Observable' is not assignable to type 'Observable'

While working with NgRX 8 my colleagues and me are frequently facing a weird error message when implementing the effects. Type 'Observable' is not assignable to type 'Observable | ((...args: any[]) => Observable)' It is…
Felix Lemke
  • 6,189
  • 3
  • 40
  • 67
51
votes
8 answers

Angular - No pipe found with name

I've created a pipe using "ng g pipe" command. I'm getting a console error when I'm using it in my code. The screenshots of the code are attached below. Error: error NG8004: No pipe found with name…
Riyasree
  • 567
  • 1
  • 4
  • 10
51
votes
2 answers

Is not core-js needed anymore?

I've updated an Angular project from version 7 to 8. Everything runs smoothly, schematics did it's job (maybe) and we are Ok (project is even in production). When we're updating Angular CLI, we always generate a new project to see the real…
Daniel Díaz Astudillo
  • 1,622
  • 2
  • 14
  • 14
51
votes
2 answers

error TS2554: Expected 2 arguments, but got 1 with @ViewChild

I was using ViewChild as follows: @ViewChild("InternalMedia") localStream; @ViewChild("emoji") mEmoji; Which was working fine till angular-7.x as soon as I upgraded it to angular-8.x it started giving following…
Akhilesh Kumar
  • 9,085
  • 13
  • 57
  • 95
49
votes
6 answers

How to reload or refresh only child component in Angular 8

I have two components, One parent and Other Child. HTML Part
47
votes
7 answers

Blocked because of a disallowed MIME type (“text/html”) : Angular 8 deployed on tomcat 9.0.30 fails to serve the assets

I have a project in which the user interface is based on angular 8 and the backend is a springboot java service. The entire project is a multi module project with the angular part being a separate module with front-end builder being used to build…
Ananthapadmanabhan
  • 5,706
  • 6
  • 22
  • 39
42
votes
5 answers

How to use the MatTableDataSource with an observable?

I am using the mat-table and I am trying to use the MatTableDataSource with an observable (I get the data from a web service), but I don't know how to configure the MatTableDataSource to use an observable instead of an array. Is the only solution to…
38
votes
7 answers

Angular 8 ng-build throwing MIME error with cordova

While executing ng build --prod --base-href ./ for building my cordova app, the final output throws an error as below. Failed to load module script: The server responded with a non-JavaScript MIME type of "". Strict MIME type checking is enforced …
Nidhin Joseph
  • 9,981
  • 4
  • 26
  • 48
35
votes
12 answers

Angular 8 viewChild returns undefined

I am trying to access the childView instance but it keeps saying the the childView is undefined. Here is my code for childViews: @ViewChild(CreateQuestionnaireComponent,{ read: true, static: false }) private…
Nesan Mano
  • 1,892
  • 2
  • 26
  • 43
1
2 3
99 100