Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

injector.resolveAndInstantiate is not a function (angular 2.0.0-rc.0) #23

Open
jon301 opened this issue May 5, 2016 · 3 comments
Open

Comments

@jon301
Copy link

jon301 commented May 5, 2016

Hi,

I'm getting the following error when using installSagaMiddleware
It looks like the injector we use is an ElementInjector and not a ReflectiveInjector (see screenshot)

ORIGINAL EXCEPTION: TypeError: injector.resolveAndInstantiate is not a function
ORIGINAL STACKTRACE:
TypeError: injector.resolveAndInstantiate is not a function
    at SagaRunner._run (http://localhost:4200/vendor/store-saga/runner.js:63:52)
    at SagaRunner.run (http://localhost:4200/vendor/store-saga/runner.js:78:14)
    at eval (http://localhost:4200/vendor/store-saga/runner.js:34:66)
    at Array.forEach (native)
    at new SagaRunner (http://localhost:4200/vendor/store-saga/runner.js:34:27)
    at DebugAppView.Object.defineProperty.get (TodoComponent_Host.template.js:87:69)
    at DebugAppView.Object.defineProperty.get (TodoComponent_Host.template.js:93:154)
    at DebugAppView._View_TodoComponent_Host0.injectorGetInternal (TodoComponent_Host.template.js:162:98)
    at DebugAppView.AppView.injectorGet (http://localhost:4200/vendor/@angular/core/src/linker/view.js:96:21)
    at DebugAppView.injectorGet (http://localhost:4200/vendor/@angular/core/src/linker/view.js:269:49)

image

  • angular 2.0.0-rc.0
  • ngrx/store 1.5.0
  • store-saga 1.0.0-beta.11
@Merott
Copy link

Merott commented May 19, 2016

@jon301 - Did you solve this?

@jon301
Copy link
Author

jon301 commented May 20, 2016

Nope
Looks like this project has been ported to ngrx/effects
You should take a look at it

@Merott
Copy link

Merott commented May 20, 2016

Considering that ngrx/effects isn't officially ready yet, I thought I'd try to stick with store-saga while trying to upgrade my app to Angular RC1.

I'm upgrading an Ionic 2 app to Angular RC1, and I don't even know what else is broken apart from the ngrx store, considering that the app won't run. So, I was trying to avoid moving to ngrx/effects while other parts of the app are still potentially broken...

Well, I guess that's the price to pay for living on the edge 😜

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

No branches or pull requests

2 participants