Skip to content

Error in react-router #56

@bhavberi

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)

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