Questions tagged [angular9]

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

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

New Breaking Changes

  • Angular now compiles with Ivy by default. See Ivy compatibility section.

  • CLI apps compile in AOT mode by default (which includes template type-checking). Users who only built with JIT before may see new type errors. See our template type-checking guide for more information and debugging tips.

  • Typescript 3.4 and 3.5 are no longer supported. Please update to Typescript 3.6.

  • tslib is now listed as a peer dependency rather than a direct dependency. If you are not using the CLI, you must manually install tslib, using yarn add tslib or npm install tslib --save.


See the changelog for latest version information.

As of December 2019, the current RC version is 9.0.0-rc.7

Consider using the Update Guide for tips before changing the version.

You can read more about Angular version 9 here

1936 questions
703
votes
34 answers

Unable to resolve dependency tree error when installing npm packages

When trying to install the npm packages using npm i command, I am getting the following exception: I have tried reinstalling the Node.js package and setting the proxy to off using: set HTTP_PROXY= set HTTPS_PROXY= The issue is still there. What I…
Pearl
  • 8,373
  • 8
  • 40
  • 59
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
106
votes
4 answers

This class is visible to consumers via SomeModule -> SomeComponent, but is not exported from the top-level library entrypoint

I upgraded all my angular library to angular 9.0.0 using ng update and when I try to build them I got below error. Error: Unsupported private class SomeComponent. This class is visible to consumers via SomeModule -> SomeComponent, but is not…
Aniruddha Das
  • 20,520
  • 23
  • 96
  • 132
88
votes
18 answers

Angular 9 introduced a global '$localize()' function that needs to be loaded

I'm getting the following error in my new angular project setup. Installed Packages and its versions ERROR Error: Uncaught (in promise): Error: It looks like your application or one of its dependencies is using i18n. Angular 9 introduced a…
67
votes
4 answers

ERROR in ngcc is already running at process with id xxxx

When I try to run ng serve command in my project it produce the below error. ERROR in ngcc is already running at process with id xxxx
Shyam Narayan
  • 1,009
  • 2
  • 14
  • 28
55
votes
10 answers

Angular 9 - The target entry-point has missing dependencies

I have upgraded an Angular library to Angular 9. However when I attempt to use that library in another Angular 9 project I get an error like this: The target entry-point "mycomponents/entity-selector" has missing dependencies: -…
Scott Walter
  • 9,426
  • 4
  • 18
  • 23
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
49
votes
3 answers

What do I need to cache in my CI job to avoid ngcc recompiling each time?

With angular 9 and it's new compilation engine IVY, my CI build times have increased substantially. This is of course is because ngcc is ran on many modules. e.g. Compiling @angular/core : es2015 as esm2015 Compiling @angular/common : es2015 as…
46
votes
3 answers

"ERROR in getInternalNameOfClass() called on a non-ES5 class: expected AngularFireModule to have an inner class declaration"

Terminal - "WARNING in Invalid constructor parameter decorator in D:/New folder/SilverLife/node_modules/@angular/fire/fesm2015/angular-fire.js: () => [ { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] } ] …
D_B
  • 483
  • 1
  • 6
  • 8
43
votes
22 answers

TimeoutException: The Angular CLI process did not start listening for requests within the timeout period of 0 seconds

I'm getting this error after upgrading to angular 9. I'm using visual studio 2019, ASP .NET core with angular. Even if I create new project and update angular to 9 version, It stops working. Complete list of page response is : TimeoutException:…
Khizar Murad
  • 621
  • 2
  • 7
  • 15
42
votes
3 answers

Cannot declaremodule in an NgModule as it's not a part of the current compilation Angular

Im not sure what is happening here but i am receiving this error 'Cannot declare 'FormsModule' in an NgModule as it's not a part of the current compilation' when importing 'formsModule' and 'reactiveformsmodule'into my app.module component. I am…
ashley g
  • 857
  • 3
  • 11
  • 21
42
votes
4 answers

Uncaught TypeError: Cannot convert object to primitive value(zone-evergreen.js:171)

In Angular 9 (using Bootstrap 4 and Jquery 3.5.1). when clicking on bootstrap collapse button, I am getting an error on my browser console instead of a dropdown menu. I really don't know where exactly the error came from. Can't convert object to…
Rohit Kumar
  • 549
  • 1
  • 4
  • 6
35
votes
31 answers

Angular 9 ng new myapp gives error The Schematic workflow failed

I have angular 9 installed Angular CLI: 9.0.1 Node: 13.8.0 OS: win32 x64 Angular: ... Ivy Workspace: Package Version @angular-devkit/architect 0.900.1 @angular-devkit/core 9.0.1 @angular-devkit/schematics …
Lijo Daniel
  • 371
  • 1
  • 3
  • 7
30
votes
6 answers

error: Could not find a declaration file for module '@ckeditor/ckeditor5-build-classic' angular 9

I want to use ckeditor in angular 9, I followed instructions in https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/angular.html but it shows an error where I import '@ckeditor/ckeditor5-build-classic': Could not find a…
Jalaleddin Hosseini
  • 2,142
  • 2
  • 25
  • 28
29
votes
5 answers

How to import all Angular Material modules in Angular 9

I want to import all angular material modules and use into overall angular project templates.
1
2 3
99 100