For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

AUR0771

Error Message

AUR0771: The aurelia instance must be fully stopped before it can be disposed

Description

Aurelia.dispose() was called while the application was running, starting, or stopping. Disposal releases the application container, so Aurelia requires the active lifecycle transition to settle first.

Solution

Await stop() before disposing the Aurelia instance. await works for both the synchronous and asynchronous return paths:

await aurelia.stop(true);
aurelia.dispose();

Route shutdown requests through one function when several parts of the application can trigger them. That function can await stop(true) before disposing the instance, which keeps disposal from racing with an active stop.

If start() or stop() already failed, address that original lifecycle or app-task error first. The failed Aurelia instance cannot be restarted. Create a fresh instance after fixing the cause.

Last updated

Was this helpful?