-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fresh build- front end errors #192
Comments
Which version of React and React Router are you using? React Router v6 made a lot of changes.
ReactDOM.render has been changed to createRoot.
In v6 'Switch' was removed entirely. 'Switch' is now 'Routes'
There have also been changes made in the way that routes are rendered. This is what it looked like prior:
This requires some refactoring, so I'd recommend taking a look at what upgrades are needed for React 18 and react hooks
In v6 'Redirect' has been changed to 'Navigate'. Change 'useHistory' to 'useNavigate' and then 'Redirect' to 'Navigate' in the jsx component. |
They're using the version that's in the clean install, as described in the readme.md I see the same behavior following the instructions provided, and given I was installing this to start playing with and learning react, makes the whole thing pretty useless. |
After a clean install and trying to run this, the frontend locks up and I get the following errors:
Any idea how to troubleshoot this?
The text was updated successfully, but these errors were encountered: