Type '{ path: string; exact: true; component: FC<{}>; }' is not assignable to type 'IntrinsicAttributes & IRoutesProps'. Property 'path' does not exist on type 'IntrinsicAttributes & IRoutesProps'.ts(2322) code example
Example: reach router path typescript error
import React, { FunctionComponent } from "react";
import { RouteComponentProps } from "@reach/router";
type Props = { component: FunctionComponent } & RouteComponentProps;
const Route: FunctionComponent<Props> = ({ component: Component, ...rest }) => (
<Component {...rest} />
);
export default Route;