问题描述
在安装ngrx store后,出现此错误,有人知道为什么吗?
C:\Users\user\Desktop\NgRxExample\ngrx-applications>ng s -o
chunk {main} main.js,main.js.map (main) 2.04 kB [initial] [rendered]
chunk {polyfills} polyfills.js,polyfills.js.map (polyfills) 697 bytes [initial] [rendered]
chunk {runtime} runtime.js,runtime.js.map (runtime) 6.15 kB [entry] [rendered]
chunk {styles} styles.js,styles.js.map (styles) 9.73 kB [initial] [rendered]
chunk {vendor} vendor.js,vendor.js.map (vendor) 340 kB [initial] [rendered]
Date: 2020-09-11T05:00:32.637Z - Hash: 7a41446eaa7b76a1e566 - Time: 2949ms
目标入口点“ @ ngrx / store”中的ERROR缺少相关性: -@ angular / core
** Angular Live Development Server is listening on localhost:4200,open your browser on http://localhost:4200/ **
解决方法
在此处找到修复程序:Ng serve throwing @angular/core/core has no exported member 'eeFactoryDef'
In myApp's tsconfig.json file,made the following entry under compilerOptions
"paths": {
"@angular/*": ["./node_modules/@angular/*"]
},