我正在使用ngrx开发一个角度应用程序,我已经安装了依赖项,但是在运行该应用程序时出现一些与版本不匹配有关的错误
查看我在编译时遇到的以下错误
ERROR in J:/Official/16-01-2019/ngx-admin-dashboard/ngx-admin-dashboard-master/node_modules/@ngrx/store/src/store.d.ts (30,31): Cannot find name 'Extract'.
ERROR in J:/Official/16-01-2019/ngx-admin-dashboard/ngx-admin-dashboard-master/node_modules/@ngrx/store/src/store_module.d.ts (23,154): Type 'ModuleWithProviders' is not generic.
ERROR in J:/Official/16-01-2019/ngx-admin-dashboard/ngx-admin-dashboard-master/node_modules/@ngrx/store/src/store_module.d.ts (24,178): Type 'ModuleWithProviders' is not generic.
ERROR in J:/Official/16-01-2019/ngx-admin-dashboard/ngx-admin-dashboard-master/node_modules/@ngrx/store/src/store_module.d.ts (25,171): Type 'ModuleWithProviders' is not generic.
ERROR in J:/Official/16-01-2019/ngx-admin-dashboard/ngx-admin-dashboard-master/node_modules/@ngrx/effects/src/effects_metadata.d.ts (2,19): Cannot find name 'Extract'.
ERROR in J:/Official/16-01-2019/ngx-admin-dashboard/ngx-admin-dashboard-master/node_modules/@ngrx/effects/src/effects_metadata.d.ts (11,13): Cannot find name 'Extract'.
ERROR in J:/Official/16-01-2019/ngx-admin-dashboard/ngx-admin-dashboard-master/node_modules/@ngrx/effects/src/actions.d.ts (2,22): Module '"J:/Official/16-01-2019/ngx-admin-dashboard/ngx-admin-dashboard-master/node_modules/rxjs/Rx"' has no exported member 'OperatorFunction'.
ERROR in J:/Official/16-01-2019/ngx-admin-dashboard/ngx-admin-dashboard-master/node_modules/@ngrx/effects/src/actions.d.ts (28,42): Cannot find name 'Extract'.
ERROR in J:/Official/16-01-2019/ngx-admin-dashboard/ngx-admin-dashboard-master/node_modules/@ngrx/effects/src/actions.d.ts (31,42): Cannot find name 'Extract'.
ERROR in J:/Official/16-01-2019/ngx-admin-dashboard/ngx-admin-dashboard-master/node_modules/@ngrx/effects/src/actions.d.ts (34,42): Cannot find name 'Extract'.
ERROR in J:/Official/16-01-2019/ngx-admin-dashboard/ngx-admin-dashboard-master/node_modules/@ngrx/effects/src/actions.d.ts (37,42): Cannot find name 'Extract'.
ERROR in J:/Official/16-01-2019/ngx-admin-dashboard/ngx-admin-dashboard-master/node_modules/@ngrx/effects/src/actions.d.ts (40,42): Cannot find name 'Extract'.
ERROR in J:/Official/16-01-2019/ngx-admin-dashboard/ngx-admin-dashboard-master/node_modules/@ngrx/effects/src/effects_module.d.ts (5,53): Type 'ModuleWithProviders' is not generic.
ERROR in J:/Official/16-01-2019/ngx-admin-dashboard/ngx-admin-dashboard-master/node_modules/@ngrx/effects/src/effects_module.d.ts (6,47): Type 'ModuleWithProviders' is not generic.
webpack: Failed to compile.
Here is my package.json dependencies
"@angular/animations": "^5.0.0",
"@angular/common": "^5.0.0",
"@angular/compiler": "^5.0.0",
"@angular/core": "^5.0.0",
"@angular/forms": "^6.0.3",
"@angular/http": "^5.0.0",
"@angular/platform-browser": "^5.0.0",
"@angular/platform-browser-dynamic": "^5.0.0",
"@angular/router": "^5.0.0",
"@ngrx/effects": "^7.0.0",
"@ngrx/store": "^7.0.0",
"core-js": "^2.4.1",
"font-awesome": "^4.7.0",
"material-design-iconic-font": "^2.2.0",
"ng-selectize": "^1.1.0",
"ngx-perfect-scrollbar": "^5.0.0",
"rxjs": "^5.5.8",
"rxjs-compat": "^6.3.3",
"selectize": "^0.12.4",
"zone.js": "^0.8.14"
任何人都可以检查并告诉我版本是否有错误。
答案 0 :(得分:0)
将Angular升级到版本7或将NgRx降级到版本5。