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

前端 未结 6 876
说谎
说谎 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 18:51

    I'm getting the same error. I'm using Angular 9.7.1, I first tried to delete the node_modules and npm install but it didn't work so I finally fixed it adding this to the tsconfig.json:

    "compilerOptions":{
     [...]
     "paths": {
          "@angular/*": ["./node_modules/@angular/*"]
        }
    }
    

提交回复
热议问题