You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This one has bitten me several times. If you're not very used to jsx yet, and by accident put a // comment somewhere in the router jsx structure, you will get an error like this
Invariant Violation: Unrecognized route configuration element "<UnknownComponent>"
Someone like me might read that there is a mistake in one of the active routes, and starts looking in all the wrong places. Maybe even commenting out other blocks which only adds to the problem.
It would be great if the error could print something more informative. I've just wasted a few hours tracking this down and really felt like I was going insane. When scanning over the source code my brain is really trained to ignore comments.
The text was updated successfully, but these errors were encountered:
This one has bitten me several times. If you're not very used to jsx yet, and by accident put a // comment somewhere in the router jsx structure, you will get an error like this
Invariant Violation: Unrecognized route configuration element "<UnknownComponent>"
Someone like me might read that there is a mistake in one of the active routes, and starts looking in all the wrong places. Maybe even commenting out other blocks which only adds to the problem.
It would be great if the error could print something more informative. I've just wasted a few hours tracking this down and really felt like I was going insane. When scanning over the source code my brain is really trained to ignore comments.
The text was updated successfully, but these errors were encountered: