Warning #1: RouteGroup.open() cannot navigate
You called group.open(), but the group has no idea where to go.
What happened
groupRoutes tries, in order:
- Open the index route (
index: trueor second constructor arg) - Else delegate to the first nested
RouteGroupthat itself can navigate (canNavigate === true) - Else log this warning and skip navigation
Typical mistake: a group of routes without marking which one is the default landing page, and no nested group can navigate either.
Fix
Add an index child:
ts
groupRoutes({
index: createRoute('/dashboard', { index: true }),
settings: createRoute('/dashboard/settings'),
});Or pass the index explicitly: groupRoutes(routes, myIndexRoute).
In production the message is minified (minified warning #1).
