With the release of ember-redux v5.0 you should uninstall this
npm uninstall ember-redux-saga-shim --save-dev
ember install ember-auto-import
npm install redux-saga --save-dev
ember install ember-redux-saga-shim
import createSagaMiddleware from 'redux-saga'
import {call, put, takeEvery, takeLatest} from 'redux-saga/effects'
To learn more about redux-saga
and how to use it visit the redux-saga Github page.
In order to use generator functions in your Ember application you need to make sure you do one of the following:
-
Include Babel Polyfills – In order to include Babel polyfills add the following to your ember-cli-build.js configuration:
'ember-cli-babel': { includePolyfill: true }
-
Add a Polyfill – Add a polyfill by simply running the following command:
ember install ember-maybe-import-regenerator