AUR3272: Root RouteContext is not set. Did you forget to register RouteConfiguration, or try to navigate before calling Aurelia.start()?
This error occurs when router navigation is attempted but the root RouteContext has not been established. The most common causes are:
RouteContext
Router configuration was not registered.
Navigation is attempted before Aurelia.start() completes.
Aurelia.start()
Ensure RouterConfiguration is registered (for example via Aurelia.register(...)).
RouterConfiguration
Aurelia.register(...)
Only navigate after await aurelia.start().
await aurelia.start()
Verify your main.ts (or equivalent) registers router configuration exactly once.
main.ts
Check whether navigation is triggered during construction/binding before the app is started.
Last updated 1 month ago
Was this helpful?