简体   繁体   中英

Typescript - getting tslint error on createReducer

I created a simple reducer as part of ngRx, got the below error for the on() method.

在此处输入图像描述

also, got some errors in the reducer_creator.d.ts file:

在此处输入图像描述

在此处输入图像描述

Further, Here is my package.json ngrx and typescript versions:

"@ngrx/effects": "^11.0.1",
"@ngrx/store": "^11.0.1",
"@ngrx/store-devtools": "^11.0.1",
"typescript": "~3.1.6"

Any suggestions to fix this issue?

NgRx v11 expects TypeScript 4 to be used. https://ngrx.io/guide/migration/v11

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM