-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
TypeError: _Router2.default.computeRootMatch is not a function #6381
Comments
This is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux where there are a lot more people ready to help you out. Thanks! |
Also, you have mismatched versions of react-router, react-router-dom, and react-router-config: "react-router": "^4.3.1",
"react-router-config": "^4.4.0-beta.1",
"react-router-dom": "4.2.2", |
For what it's worth, I was having the same issue, a few minutes ago, while I was trying to test something out in a clean CodeSandbox react project. I've installed react-router and react-router-dom on version 4.3.1 both, and all react-router-config versions above 1.0.0-beta.X throw this error. Getting back to 1.0.0-beta.X fixes the issue. I understand that this is a major version bump, so breaking changes are expected, so maybe the react-router-config docs need an update, since now they are reflective of the 1.0.0-beta.X versions? |
This will crop up If path is not provided, it attempts to use a function from react-router,
Here's the relevant warning from npm:
Best to keep all the related versions in sync -- i.e., use |
When i import
react-router-config
in to my project it show this errorpackage.json
The text was updated successfully, but these errors were encountered: