[英]Typescript - getting tslint error on createReducer
I created a simple reducer as part of ngRx, got the below error for the on()
method.我创建了一个简单的减速器作为 ngRx 的一部分,但
on()
方法出现以下错误。
also, got some errors in the reducer_creator.d.ts file:此外,reducer_creator.d.ts 文件中出现了一些错误:
Further, Here is my package.json ngrx and typescript versions:此外,这是我的 package.json ngrx 和 typescript 版本:
"@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. NgRx v11 期望使用 TypeScript 4。 https://ngrx.io/guide/migration/v11
https://ngrx.io/guide/migration/v11
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.