Because you have to change to and you cannot use in the with React Router V6.
So… this all boils down to the fact that the file protected-route.js inside the auth folder… in the client side… has code that wants things to be in a way(ProtectedRoute) that React Router V6 does not allow.
Solution 2: Implement code that makes it work that you create on your own.
Solution 3: Wait for an Auth0 guide that is fully compatible with React 18 and React Router V6.
I’ve decided to go for solution 1 for the moment, and then… when there is a new guide… I will attempt to migrate. I don’t want to code it on my own because I will probably make a frankenstein solution with a bunch of hacks that will later come back to bite me in the butt when the guide comes out.
This is the guide I’m refering to, follow it using the dependencies above and it should work. But the downside is you won’t have React 18 hahaha nor React Router V6