Connected-react-router: react-redux does not contain an export named ReactReduxContext

Created on 18 Jan 2019  路  3Comments  路  Source: supasate/connected-react-router

I'm setting up connected-react-router for a personal project, and this error arises when I follow the steps from the _README_

./node_modules/connected-react-router/esm/ConnectedRouter.js
145:35-52 'react-redux' does not contain an export named 'ReactReduxContext'.

I think is a compatibility with react-redux thing, maybe?

package.json

  {
  "dependencies": {
    "axios": "^0.18.0",
    "classnames": "^2.2.6",
    "connected-react-router": "^6.2.1",
    "history": "^4.7.2",
    "prop-types": "^15.6.2",
    "react": "^16.5.2",
    "react-declarative-animations": "^0.1.2",
    "react-dom": "^16.5.2",
    "react-redux": "^5.0.7",
    "react-router-dom": "^4.3.1",
    "react-scripts": "1.1.4",
    "redux": "^4.0.0",
    "redux-form": "^8.1.0",
    "redux-saga": "^0.16.2"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
  },
  "devDependencies": {
    "eslint": "^5.3.0",
    "eslint-config-airbnb": "^17.1.0",
    "eslint-plugin-import": "^2.14.0",
    "eslint-plugin-jsx-a11y": "^6.1.2",
    "eslint-plugin-react": "^7.12.3",
    "redux-devtools-extension": "^2.13.5"
  }
}

Most helpful comment

Your version of connected-react-router requires using react-redux version 6 or later. Try to upgrade to the latest version of react-redux with yarn upgrade react-redux -L and you should be good to go.

All 3 comments

Your version of connected-react-router requires using react-redux version 6 or later. Try to upgrade to the latest version of react-redux with yarn upgrade react-redux -L and you should be good to go.

Yes! that was the issue. Thanks

@yuliyan @abeledovictor I have the newest version of react-redux and I'm still experiencing this issue.

{ "version": "0.1.0", "private": true, "dependencies": { "axios": "^0.18.0", "babel": "^6.23.0", "bootstrap": "^4.3.1", "connected-react-router": "^6.3.2", "i": "^0.3.6", "npm": "^6.9.0", "react": "^16.8.6", "react-bootstrap": "^1.0.0-beta.6", "react-dom": "^16.8.5", "react-redux": "^6.0.1", "react-router-dom": "^5.0.0", "react-scripts": "^1.1.1", "react-scroll-horizontal": "^1.6.2", "react-scrollbar": "^0.5.4", "react-youtube": "^7.9.0", "reactstrap": "^7.1.0", "redux": "^4.0.0", "redux-thunk": "^2.3.0" }, "scripts": { "start": "node node_modules/react-scripts/scripts/start.js", "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" }, "devDependencies": { "babel-plugin-transform-es2015-destructuring": "^6.23.0", "babel-plugin-transform-object-rest-spread": "^6.26.0", "babel-preset-env": "^1.7.0", "babel-preset-stage-0": "^6.24.1" } }

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexseitsinger picture alexseitsinger  路  3Comments

nickvoronin-ellation picture nickvoronin-ellation  路  5Comments

jhwheeler picture jhwheeler  路  3Comments

jjdp picture jjdp  路  4Comments

hauptrolle picture hauptrolle  路  3Comments