我正在尝试导入 NGRX 以构建一个新的 Angular 应用程序,但是当我使用 ng serve 时,我的终端中出现此错误:
node_modules/@ngrx/store/src/reducer_creator.d.ts:32:99 中的错误 - 错误 TS1005: ',' 预期。
32 export 声明函数 on
~
node_modules/@ngrx/store/src/reducer_creator.d.ts:32:118 - 错误 TS1005: ',' 预期。
32 export 声明函数 on
这是我的 Angular cli/节点版本/操作系统
Angular CLI:9.1.0
节点:10.13.0
操作系统:达尔文 x64
最佳答案
NgRx v11 期望使用 TypeScript 4 和 Angular 11。https://ngrx.io/guide/migration/v11
关于angular - Angular 应用程序中的 ngrx 导入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66238212/