0

Recently, I am getting some error. when I update my angular project 9.0.7 to 9.1.9. This time i get this type of errors.


ERROR in ../AppState/node_modules/@angular/core/core.d.ts:256:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 1 type argument(s).

256     static ɵfac: ɵngcc0.ɵɵFactoryDef<ApplicationInitStatus, [{ optional: true; }]>;
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../AppState/node_modules/@angular/core/core.d.ts:439:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 1 type argument(s).

439     static ɵfac: ɵngcc0.ɵɵFactoryDef<ApplicationRef, never>;
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../AppState/node_modules/@angular/core/core.d.ts:785:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 1 type argument(s).

785     static ɵfac: ɵngcc0.ɵɵFactoryDef<Compiler, never>;
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../AppState/node_modules/@angular/core/core.d.ts:5028:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 1 type argument(s).

5028     static ɵfac: ɵngcc0.ɵɵFactoryDef<PlatformRef, never>;
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../AppState/node_modules/@angular/core/core.d.ts:6414:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 1 type argument(s).

6414     static ɵfac: ɵngcc0.ɵɵFactoryDef<SystemJsNgModuleLoader, [null, { optional: true; }]>;
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../AppState/node_modules/@angular/core/core.d.ts:6611:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 1 type argument(s).

6611     static ɵfac: ɵngcc0.ɵɵFactoryDef<Testability, never>;
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../AppState/node_modules/@angular/core/core.d.ts:6656:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 1 type argument(s).

6656     static ɵfac: ɵngcc0.ɵɵFactoryDef<TestabilityRegistry, never>;
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../AppState/node_modules/@angular/core/core.d.ts:9555:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 1 type argument(s).

9555     static ɵfac: ɵngcc0.ɵɵFactoryDef<ɵConsole, never>;
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../AppState/node_modules/@datorama/akita/lib/store.d.ts:138:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 1 type argument(s).

138     static ɵfac: ɵngcc0.ɵɵFactoryDef<Store<any>, never>;
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **

I could not understand what is the problem. please help.

Shibaji Debnath
  • 1,105
  • 1
  • 10
  • 16

2 Answers2

0

Delete and reinstall your node modules

update your angular CLI

ng update @angular/cli @angular/core)

and your Typescript

npm install -g typescript@latest
Bar Levin
  • 205
  • 1
  • 12
0

I have two and more angular projects in the same directory. Where my another angular application name is AppState. Which is the outside of my current project. there dependencies connect with my project And here i was getting my problem for that.

This Error getting from dependencies. Here i am using this. npm install @datorama/akita-ng-entity-service this syntax. then i get the solution.

Shibaji Debnath
  • 1,105
  • 1
  • 10
  • 16