Exception inside application: No route found for path ''. code example

Example 1: 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;

Example 2: put route error express

//don't forget the "/" in the route targeted URL : 
app.put("/collection/:id", (req, res)=>{
	//route content
})