Open daituzhang opened 7 years ago
I found that you need to use only instrument
StoreDevtoolsModule.instrument()
but I have these versions:
"@ngrx/core": "^1.2.0",
"@ngrx/store": "^4.0.2",
"@ngrx/store-devtools": "^4.0.0",
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)
!environment.production ? StoreDevtoolsModule.instrument() : []
@grizzm0 Thanks for the fix. I'm new to ngrx
, and been experiencing a lot of difficulty finding correct information for v4, your example works well.
What if we want to still enable it in production if the extension exists?
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!!