DEV Community

Angelo
Angelo

Posted on

Problem importing useNavigation or Link from 'react-router-dom'

I installed react-router-dom (6.5.0) among the dependencies of my project, but when I want to import the hooks, it doesn't show anything from the dependency.

I don't have anything strange configured, using Vite and js. If I copy and paste something like import {useNavigation} from 'react-router-dom' the entire screen goes blank (the background is gray). I tried installing a previous version, installing and uninstalling several times, including npm, but nothing changes.

I leave screens.

Image description

Image description

Image description

Top comments (1)

Collapse
 
mohiyaddeen7 profile image
mohiyaddeen7

Send the GitHub repo url of this project