0

添加@ ngrx / store并尝试添加StoreDevtool扩展

StoreDevtoolsModule.instrumentOnlyWithExtension({
  maxAge: 5
})

并得到错误

属性'instrumentOnlyWithExtension'在'typeof StoreDevtoolsModule'类型上不存在

1个回答  正确答案

0

已找到答案,在此属性的最新版本上已替换为 instrument

StoreDevtoolsModule.instrument({
  maxAge: 5
})

来自    https://stackoverflow.com/questions/47835869/ngrx-angular-ngrx-store-devtools