Skip to content

Error in react-router #56

Description

@bhavberi

The application installs the latest version (6.7.0 as of the time of writing) for the react-router-dom npm package. But the code for the routing part consists of Switch, etc., which are now removed from the newer versions of the react-router packages.

Solutions:

  1. Either install the 5.2.0 version of the react-router-dom module, which supports the concept of Switch, etc
  2. Let the version of the module remain same, but update the code snippet being generated (https://stackoverflow.com/a/69968165)

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions