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

effectRunner is not a function - Using networkSaga #181

Closed
efiorello opened this issue Apr 3, 2019 · 7 comments
Closed

effectRunner is not a function - Using networkSaga #181

efiorello opened this issue Apr 3, 2019 · 7 comments

Comments

@efiorello
Copy link

I had this component working, but when I upgrade to react-native 0.59 with react-native-offline 4.3, and when i declare the call to the saga "networkSaga", I have this error: "effectRunner is not a function"

"react": "16.8.3",
"react-native": "0.59.0",
"react-native-offline": "^4.3.0",
"redux-saga": "^1.0.2",

help me please!

@rgommezz
Copy link
Owner

rgommezz commented Apr 4, 2019

@efiorello, could you please check the redux-saga version installed under your node_modules folder? It may be other library is forcing a specific version different than 1.x

@efiorello
Copy link
Author

@rgommezz is the same 1.0.2

@hryer
Copy link

hryer commented Jul 8, 2019

I had this component working, but when I upgrade to react-native 0.59 with react-native-offline 4.3, and when i declare the call to the saga "networkSaga", I have this error: "effectRunner is not a function"

"react": "16.8.3",
"react-native": "0.59.0",
"react-native-offline": "^4.3.0",
"redux-saga": "^1.0.2",

help me please!

I've got the same problem here, I'm just downgrading react-native-offline using v3 and it works.

my spec :

"dependencies": {
    "@react-native-community/netinfo": "^3.2.1",
    "axios": "^0.19.0",
    "native-base": "^2.12.1",
    "prop-types": "^15.7.2",
    "react": "16.8.3",
    "react-native": "0.59.9",
    "react-native-gesture-handler": "^1.3.0",
    "react-native-offline": "3.15.2",
    "react-navigation": "^3.11.0",
    "react-redux": "^7.1.0",
    "redux": "^4.0.1",
    "redux-actions": "^2.6.5",
    "redux-logger": "^3.0.6",
    "redux-persist": "^5.10.0",
    "redux-saga": "^1.0.4",
    "styled-components": "^4.3.2"

@navata
Copy link

navata commented Jul 23, 2019

I have same issue:

render() {
        return (
            <Provider store={store}>
                <PersistGate loading={null} persistor={persistor}>
                    <ReduxNetworkProvider>
                        <Root>
                            <EmartNavigator />
                            {this.renderModalBanner()}
                        </Root>
                    </ReduxNetworkProvider>
                </PersistGate>
            </Provider>
        );
    }

Package.json

"@react-native-community/async-storage": "^1.5.1",
        "@react-native-community/netinfo": "^4.1.3",
        "axios": "^0.18.1",
        "immutable": "^4.0.0-rc.12",
        "lodash.debounce": "^4.0.8",
        "moment": "^2.24.0",
        "native-base": "^2.10.0",
        "prop-types": "^15.7.2",
        "qs": "^6.7.0",
        "react": "16.8.3",
        "react-native": "0.59.10",
        "react-native-camera": "^2.11.1",
        "react-native-fast-image": "^6.1.1",
        "react-native-fbsdk": "^0.8.0",
        "react-native-firebase": "^5.1.1",
        "react-native-gesture-handler": "^1.1.0",
        "react-native-i18n": "^2.0.15",
        "react-native-image-gallery": "^2.1.5",
        "react-native-linear-gradient": "^2.5.3",
        "react-native-maps": "^0.25.0",
        "react-native-modal": "^11.1.0",
        "react-native-modal-datetime-picker": "^7.5.0",
        "react-native-offline": "^4.3.0",
        "react-native-qrcode-scanner": "^1.1.0",
        "react-native-reanimated": "^1.1.0",
        "react-native-snap-carousel": "^3.8.0",
        "react-native-splash-screen": "^3.2.0",
        "react-native-star-rating": "^1.1.0",
        "react-native-swiper": "^1.5.14",
        "react-native-tab-view": "^2.9.0",
        "react-native-vector-icons": "^6.1.0",
        "react-native-video": "^4.4.4",
        "react-native-webview": "^5.12.1",
        "react-navigation": "^3.11.0",
        "react-redux": "^7.1.0",
        "redux": "^4.0.4",
        "redux-logger": "^3.0.6",
        "redux-persist": "^5.10.0",
        "redux-saga": "^1.0.0",
        "validator": "^11.1.0"

@kennethlynne
Copy link

Make sure all dependants on redux-saga is updated to 1.x.
Suggestion:
npm ls > out.txt and search for redux-saga to figure out what depends on a lower version and make sure to upgrade it in that.

@stale
Copy link

stale bot commented Nov 2, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 2, 2019
@stale
Copy link

stale bot commented Nov 9, 2019

Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants