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

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

Description

@frgreiner

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions