Skip to content
This repository has been archived by the owner on Jul 27, 2018. It is now read-only.

Property 'instrumentOnlyWithExtension' does not exist on type 'typeof StoreDevtoolsModule'. #71

Open
daituzhang opened this issue Aug 10, 2017 · 4 comments

Comments

@daituzhang
Copy link

daituzhang commented Aug 10, 2017

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!!

@JloMexmax
Copy link

JloMexmax commented Aug 10, 2017

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",

@grizzm0
Copy link

grizzm0 commented Aug 19, 2017

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() : []

@krismeister
Copy link

krismeister commented Sep 25, 2017

@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.

@mfp22
Copy link

mfp22 commented Oct 17, 2017

What if we want to still enable it in production if the extension exists?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants