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
I'm using react v17 with react-router-dom v5 and I'm having a problem with imports and types, where type.d.ts sends a message saying "history is not defined" and The module' "react-router-dom" ' has no exported member 'RouteComponentProps'.ts(2305).
I saw that many are having the problem with the latest version, but I am having an error with an older version, I tried to use react v18 with RRD v5 but I had other problems.
Steps to reproduce
Follow steps described in documentation to reproduze a same reduce
React v17
React-router-dom v5
Expected result
React guards function return a component or router in page
Actual result
"type.d.ts sends a message saying "history is not defined" and The module' "react-router-dom" ' has no exported member 'RouteComponentProps'.ts(2305)."
Environment
OS: win 10
Browser and its version: [Chrome 115 on Windows 10]
React Router DOM version: v5
The text was updated successfully, but these errors were encountered:
Description
I'm using react v17 with react-router-dom v5 and I'm having a problem with imports and types, where type.d.ts sends a message saying "history is not defined" and
The module' "react-router-dom" ' has no exported member 'RouteComponentProps'.ts(2305)
.I saw that many are having the problem with the latest version, but I am having an error with an older version, I tried to use react v18 with RRD v5 but I had other problems.
Steps to reproduce
Follow steps described in documentation to reproduze a same reduce
Expected result
React guards function return a component or router in page
Actual result
"type.d.ts sends a message saying "history is not defined" and
The module' "react-router-dom" ' has no exported member 'RouteComponentProps'.ts(2305)
."Environment
The text was updated successfully, but these errors were encountered: