Skip to content
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.

Interface 'PrivateRouteParams' incorrectly extends interface 'RouteProps' #17

Open
frgreiner opened this issue Aug 24, 2022 · 0 comments

Comments

@frgreiner
Copy link

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant