添加@ ngrx / store并尝试添加StoreDevtool扩展
StoreDevtoolsModule.instrumentOnlyWithExtension({
maxAge: 5
})
并得到错误
属性'instrumentOnlyWithExtension'在'typeof StoreDevtoolsModule'类型上不存在
欢迎各位兄弟 发布技术文章
这里的技术是共享的
I found that you need to use only instrument but I have these versions:
|
What @JloMexmax posted will enable it in production aswell. What you can do as of v4 is put the following as an import. (assuming you have the environment.production variable) |
@grizzm0 Thanks for the fix. I'm new to |
What if we want to still enable it in production if the extension exists? |
来自 https://github.com/ngrx/store-devtools/issues/71
daituzhang commentedon 11 Aug 2017 • edited
Hi,
I got this error when I try to import
StoreDevtoolsModule.instrumentOnlyWithExtension()
I'm using:
angular/core: "^4.0.0",
"@ngrx/core": "^1.2.0",
"@ngrx/store": "^2.2.3",
"@ngrx/store-devtools": "^3.2.4",
"typescript": "~2.3.3"
Does anyone know why?
Thank you!!