You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bug is actually in v17.0.2 of @types/react where this type is missing, while it's present in v16, v18, or the more recent typing version for React 17: v17.0.44
If you make sure to use "@types/react": "17.0.44" it should work fine.
What version of React Router are you using?
react-router-dom 6.2.1
Steps to Reproduce
install these versions
and then run a type check
tsc --noEmit
Expected Behavior
no typing errors
Actual Behavior
Reviewing the types of react 17.0.2 and react 18.0.0, I see that
HTMLAttributeAnchorTarget
only exists in react 18https://www.jsdocs.io/package/@types/react/v/17.0.2
https://www.jsdocs.io/package/@types/react/v/18.0.0
The text was updated successfully, but these errors were encountered: