react-keycloak-examples icon indicating copy to clipboard operation
react-keycloak-examples copied to clipboard

Interface 'PrivateRouteParams' incorrectly extends interface 'RouteProps'

Open frgreiner opened this issue 2 years ago • 0 comments

Describe the bug The subproject at examples/react-router fails to compile:

TypeScript error in .../react-keycloak-examples/examples/react-router/src/routes/utils.tsx(7,11):
Interface 'PrivateRouteParams' incorrectly extends interface 'RouteProps<string, { [x: string]: string | undefined; }>'.

To Reproduce Steps to reproduce the behavior:

  1. Clone the project from master Branch
  2. Run yarn install (yarn version 1.22.19)
  3. Run yarn start
  4. See error

Expected behavior I expected the project to compile without me having to change anything (apart from the keycloak configuration)

Desktop (please complete the following information):

  • OS: Linux - Ubuntu 20.04

Additional context

  • node -v : v16.17.0

frgreiner avatar Aug 24 '22 06:08 frgreiner