question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

redux-saga effects not attached.

See original GitHub issue

Hi. i’m daniel. I have a question about it.

I got a some issue When i use redux-saga-router in my projects.

package dependencies version.

  • redux-saga: ^1.1.1
  • redux-saga-router: 2.2.0

when i follow the example configuration in README.md

i got a

TypeError: Cannot read property 'call' of undefined
var call = exports.call = _reduxSaga.effects.call;

I thought that error using way for effects module are changed

BEFORE:
import {effects } from 'redux-saga';
AFTER:
import { call } from 'redux-saga/effects';

That means redux-saga-router does not support redux-saga 1.1.1 version?

if not support it, could i downgrade my saga version? or has other way for solving it?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
luistorrescommented, Oct 4, 2019

@bongster Yes, TLDR: "redux-saga-router": "luistorres/redux-saga-router#dist"

What happens is that since my fork isn’t a published node package, npm/yarn can’t retrieve it and compile it, which is needed for it to work in your app. To solve this I created a #dist branch where I pushed also the compiled version and it can use directly.

1reaction
luistorrescommented, Oct 3, 2019

hi @bongster, yeah you either downgrade it or as a hacky solution you can point your package.json to the compiled version of my branch https://github.com/jfairbank/redux-saga-router/pull/29

Read more comments on GitHub >

github_iconTop Results From Across the Web

API Reference - Redux-Saga
This effect is blocking if the put is not buffered but immediately consumed ... When cancelling a Saga, all attached forks (sagas forked...
Read more >
Compatibility problem with release 1.0 · Issue #1739 · redux ...
I can't use redux-saga 1.0 with my application which use react-redux 6.x and connected-react-router 6.x ==> The effects are not called.
Read more >
Redux-saga not picking up action dispatch - Stack Overflow
Seems that your root saga file is not calling a saga method to start your sagas. As the documentation says: you should call...
Read more >
Redux Toolkit's new listener middleware vs. Redux-Saga
Predicate: the predicate property is a function that returns true or false to determine whether the effect callback should run or not. It...
Read more >
Eat This, It's Safe: How to Manage Side Effects with Redux-Saga
By leveraging the put and call methods from Redux-Saga, I don't need to worry about mocking the API. The call method does not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found