Backwards compatibility with custom component library #10313
Unanswered
VitVintrlik
asked this question in
v5 to v6 Migration
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
I have custom component library using
react-router-dom@v5
multiple apps are dependent on this library, so I cant just upgrade to v6. On new project I am trying to use"react-router-dom": "^6.10.0",
withreact-router-dom-v5-compat@6.10.0
I have included CompatRouter in project
when I try to use this I get error
WARNING in ./node_modules/react-router-dom-v5-compat/dist/index.js 1051:16-26 export 'useHistory' (imported as 'useHistory') was not found in 'react-router-dom'
Any help with this would be appreciated.
Custom component library runs on Rollup and new project on WebpackV5
Beta Was this translation helpful? Give feedback.
All reactions