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

Uncaught TypeError: (0 , _reactRouterDom.useNavigate) is not a function at LinkContainer #628

Open
alxthm opened this issue Dec 26, 2021 · 0 comments

Comments

@alxthm
Copy link

alxthm commented Dec 26, 2021

Doing the tutorial, I had trouble adding links to the navbar. The command

npm install react-router-bootstrap

currently installs v0.26.0, which added support for React Router v6. This is not compatible with the specified version of "react-router-dom": "^5.2.0" in the tutorial, which uses the old useHistory function instead of useNavigate.

I was able to fix the issue by running

npm install [email protected] --save

in the frontend folder, to match the version in the tutorial repository.

Maybe we should mention this in the tutorial ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant