Ng serve throwing @angular/core/core has no exported member 'eeFactoryDef'

前端 未结 6 828
说谎
说谎 2021-01-03 18:05

Im getting like 50 errors that all say that angular/core/core has no exported member \'eeFactoryDef\'.

They come from different node_modules, for example angular/cdk

6条回答
  •  被撕碎了的回忆
    2021-01-03 19:00

    I got the issue when switching between Angular 8 and 9 multiple times as mentioned by peregrination.

    Solution for me was not to delete "node_module" and run "npm install" again, but to remove and re-install npm packages to angular 8 compatible version which were mentioned in the error.

    ERROR in node_modules/ngx-infinite-scroll/src/modules/infinite-scroll.directive.d.ts:27:25 - error TS2694: Namespace '"/opt/atlassian/pipelines/agent/build/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
    27     static ɵfac: ɵngcc0.ɵɵFactoryDef;
                               ~~~~~~~~~~~~
    node_modules/ng-click-outside/lib_commonjs/click-outside.directive.d.ts:34:25 - error TS2694: Namespace '"/opt/atlassian/pipelines/agent/build/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
    34     static ɵfac: ɵngcc0.ɵɵFactoryDef;
    

提交回复
热议问题