I'm using @reach/router
in my project. According to the documentation, the useLocation
hook is supported. However, when I try to import it, I keep on getting the same error:
Cannot import useLocation because there is no useLocation export in @reach/router. Did you mean Location?
I've tried deleting node_modules
and package.json.lock
and then reinstalling dependencies. Any help?