For the complete documentation index, see llms.txt. This page is also available as Markdown.

AUR0503

Error Message

AUR0503: Controller at <controller> is in an unexpected state: <state> during activation.

Description

Aurelia found a controller state outside the supported activation transitions. Activation normally starts from an inactive controller, while an already active controller needs no further work. The low-level Controller API does not queue a second activation requested during an active transition.

Check any integration code that controls the controller lifecycle directly. It may have changed controller.state or called a controller method outside its lifecycle contract. If this occurs through standard routing or template composition, capture a minimal reproduction for the Aurelia team.

What to Check

  • Find direct writes to controller.state and remove them.

  • Await the result of low-level activate() and deactivate() calls before starting unrelated controller work.

  • Record <controller>, <state>, and the full stack trace.

Last updated

Was this helpful?