I upgraded react-router and react-router-dom to 6.0.0-beta.0 from v4 and since then I'm getting this error. I'm not using match.path anywhere in the app.
dependencies {
"@types/react-router": "^4.0.28",
"@types/react-router-dom": "^4.2.7",
"react-router": "^6.0.0-beta.0",
"react-router-dom": "^6.0.0-beta.0",
"history": "^5.0.0"
}
/Users/..../../node_modules/@types/react-router-dom/index.d.ts
(10,10): Module '"../../../../../../../../Users/allans/Desktop/../../node_modules/react-router"' has no exported member 'match'
Not enough documentation is available to this issue.
remove @types/react-router and @types/react-router-dom from package.json
For me, this error was resolved by removing react-router from package.json and keeping react-router dom only
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With