Skip to content

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:

  1. If the group has an index route (constructor indexRoute argument, or a child with index: true), that route’s open() runs.
  2. Otherwise, if the group contains nested RouteGroup instances, open() is delegated to the last nested group in object key order.
  3. If there is no index route and no nested RouteGroup, there is no target to open. The library logs Warning #1 and does nothing.

Potential solutions

  • Pass an index route to groupRoutes(routes, indexRoute) or mark one child route with index: true.
  • Or structure the group so a nested RouteGroup receives open() when you rely on group-level navigation.

See also

Released under the MIT License.