Hi i'm currently upgrading react-router-dom from 5.2.0 to 6.3.0 for my react typescript application. while converting the application I'm getting this error Module '"react-router-dom"' has no exported member 'match'.
here you can find the below code.
import { match } from 'react-router-dom';
export interface ContentTypeIdParams {
contentTypeId: string;
}
export interface ContentTypeBreadcrumbProps {
match: match<ContentTypeIdParams>;
}
I'm facing this error in my interface.
my route path
<Route
path={`${RoutesEnum.RELEVANCE_TESTING_VERSIONS_COMPARISON_TEST_CASE}*`}
element={({ match: { params } }) => (
<Redirect
to={getUrlWithParams(
RoutesEnum.RELEVANCE_TESTING_VERSIONS_COMPARISON,
params
)}
/>
I searched a lot about this error but couldn't find any answers or questions. if anyone knows about this kindly answer this.