import { BrowserRouter ,Route ,Redirect, Switch } from ‘react-router-dom’; 引入之后就报错
“react-router-dom”: “^4.3.1”,