我正在尝试导入 NGRX 以构建一个新的 Angular 应用程序,但是当我使用 ng serve 时,我的终端中出现此错误:
node_modules/@ngrx/store/src/reducer_creator.d.ts:32:99 中的错误 - 错误 TS1005: ',' 预期。
32 export 声明函数 on<State, Creators extends readonly ActionCreator[]>(...args: [...creators: Creators, reducer: OnReducer<State, Creators>]): ReducerTypes<State, Creators>; ~ node_modules/@ngrx/store/src/reducer_creator.d.ts:32:118 - 错误 TS1005: ',' 预期。
32 export 声明函数 on<State, Creators extends readonly ActionCreator[]>(...args: [...creators: Creators, reducer: OnReducer<State, Creators>]): ReducerTypes<State, Creators>;
这是我的 Angular CLI/节点版本/操作系统 Angular CLI:9.1.0 节点:10.13.0 操作系统:darwin x64