【问题标题】:The target entry-point "@ngrx/store" has missing dependencies: - @angular/core目标入口点“@ngrx/store”缺少依赖项:-@angular/core
【发布时间】:2021-06-27 21:58:41
【问题描述】:

安装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”中的错误缺少依赖项: - @angular/core

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

【问题讨论】:

  • 您所做的只是安装软件包?你没用过?
  • 我想用它,但在此之前,我想编译看看是否一切正常,但现在不行了
  • 可能你有对等依赖冲突。
  • 我该如何解决?
  • 确保您使用的 ngrx 版本与您的应用使用的 Angular 版本兼容。

标签: angular angularjs-directive ngrx ngrx-store ngrx-effects


【解决方案1】:

在此处找到解决方法: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/*"]
    },

【讨论】:

    猜你喜欢
    • 2020-05-29
    • 1970-01-01
    • 2021-10-20
    • 1970-01-01
    • 1970-01-01
    • 2023-01-12
    • 2021-05-04
    • 1970-01-01
    • 2021-05-19
    相关资源
    最近更新 更多