react-builder icon indicating copy to clipboard operation
react-builder copied to clipboard

Error in react-router

Open bhavberi opened this issue 3 years ago • 0 comments

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)

bhavberi avatar Jan 21 '23 10:01 bhavberi