store-saga icon indicating copy to clipboard operation
store-saga copied to clipboard

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

Open jon301 opened this issue 9 years ago • 3 comments

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

jon301 avatar May 05 '16 08:05 jon301

@jon301 - Did you solve this?

Merott avatar May 19 '16 22:05 Merott

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

jon301 avatar May 20 '16 00:05 jon301

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 😜

Merott avatar May 20 '16 09:05 Merott