React Typescript: add location state to react router component

前端 未结 4 1771
情歌与酒
情歌与酒 2020-12-21 07:52

I have a normal route

function LoginPage(props: RouteComponentProps): React.ReactElement {...
}

that uses RouteComponentProps

4条回答
  •  孤城傲影
    2020-12-21 08:16

    Looks like you do not use lock files for the packages. I would suggest you find a working environment (in the previously generated docker image, or from one of the team members), and generate package-lock.json (or yarn.lock) there. I used this command for it npm install --package-lock. It will help you for the first time until the issue will be solved completely.

提交回复
热议问题