Cannot add a default Route using the Redirect component #8976
Unanswered
RubenZx
asked this question in
v5 to v6 Migration
Replies: 1 comment
-
Adding |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I started following the steps of the official migration guide and I got stuck in the Migration Strategy section. I have replaced all my routes (
Route
component from v5 package) withCompatRoute
, without any problem, but when I try to replace my default redirect used for that routes that are not defined, I always get a blank page with no errors printed in console.I have tried the following:
All my routes are wrapped by its corresponding
Switch
from 'react-router-dom
'.Am I doing anything wrong? Is there any problem with this?
Beta Was this translation helpful? Give feedback.
All reactions