using react-router-dom v6 #725
Replies: 6 comments 3 replies
-
@shivam-sharma7 you have a missing exported History type. Looks like you might have stumbled across this issue. Can you try the workaround mentioned here ? |
Beta Was this translation helpful? Give feedback.
-
useHistory() not supported in latest react-router-dom v6 |
Beta Was this translation helpful? Give feedback.
-
@shivam-sharma7 I would add your finding to the issue #50526 to see what's suggested as an alternative. |
Beta Was this translation helpful? Give feedback.
-
@whitingjr Thanks, but track my branch here master...shivam-sharma7:Horreum:react-router-dom or pull and run it in your machine. |
Beta Was this translation helpful? Give feedback.
-
@shivam-sharma7 Code you provided is not the same as https://github.com/shivam-sharma7/Horreum/blob/react-router-dom/webapp/src/App.tsx Besides that I didn't see the error you reported. Instead when building the project I get this.
|
Beta Was this translation helpful? Give feedback.
-
Getting error
Beta Was this translation helpful? Give feedback.
All reactions