react-router-hash-link
react-router-hash-link copied to clipboard
React-Router-Hash-Link cannot resolve the library when using NPM and typescript.
import { HashLink } from 'react-router-hash-link';
The import is as above and it was installed using NPM and @types
I believe it is highly likely that I am doing something wrong but I cannot identify what.
Install @types/react-router-hash-link (npm/yarn) and save it to your package.json devDependencies
It helps me, thanks @scarabaeus
"devDependencies": {
"@types/react-router-hash-link": "^2.4.9",
},