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
Make sure your @types/react version is up to date. This is likely a version prior to 18.2.6, where React.JSX.Element was added and the global JSX.Element was deprecated.
What version of React Router are you using?
v6.15.0
Steps to Reproduce
react
Version: v16.14.0react-dom
Version: v16.14.0react-router-dom
version v.6.15.0tsc
with the followingtsconfig
Expected Behavior
No errors to be reported.
Typescript should build successfully
Actual Behavior
The following error is reported by the Typescript compiler.
Error: node_modules/react-router-dom/dist/index.d.ts(36,107): error TS2694: Namespace 'React' has no exported member 'JSX'.
The text was updated successfully, but these errors were encountered: