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

React-Router-Hash-Link cannot resolve the library when using NPM and typescript. #106

Open
cannibalisticwalrus opened this issue May 12, 2023 · 2 comments

Comments

@cannibalisticwalrus
Copy link

cannibalisticwalrus commented May 12, 2023

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.

@scarabaeus
Copy link

scarabaeus commented Dec 6, 2023

Install @types/react-router-hash-link (npm/yarn) and save it to your package.json devDependencies

@marki1an
Copy link

marki1an commented Mar 7, 2024

It helps me, thanks @scarabaeus

  "devDependencies": {
    "@types/react-router-hash-link": "^2.4.9",
  },

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

3 participants