Warning #1: RouteGroup.open() has nothing to open
In production builds the console shows minified warning #1 with a link to this page; in other environments you get a multi-line message with the same meaning.
Explanation
RouteGroup.open() (and groupRoutes(...).open()) resolves navigation in this order:
- If the group has an index route (constructor
indexRouteargument, or a child withindex: true), that route’sopen()runs. - Otherwise, if the group contains nested
RouteGroupinstances,open()is delegated to the last nested group in object key order. - If there is no index route and no nested
RouteGroup, there is no target to open. The library logs Warning#1and does nothing.
Potential solutions
- Pass an index route to
groupRoutes(routes, indexRoute)or mark one child route withindex: true. - Or structure the group so a nested
RouteGroupreceivesopen()when you rely on group-level navigation.
