Errors

Error message format

Encountered an error and looking for answers? You've come to the right place.

Coded errors in Aurelia use the format AURxxxx:yyyy where:

  • AUR is the prefix to indicate it's an error from Aurelia

  • xxxx is the code

  • : is the delimiter between the prefix, code and the dynamic information associated with the error

  • yyyy is the extra information, or parameters related to the error

Enabling development debug information

When using production builds of the core Aurelia packages, you may see an error message like AUR0015:abcxyz, which can be hard to interpret during development.

In development builds, Aurelia errors typically include a human-readable message and a link to the corresponding documentation page.

Vite

@aurelia/vite-plugin automatically picks the development build when process.env.NODE_ENV is not production. You can also override this using the useDev option:

import { defineConfig } from 'vite';
import aurelia from '@aurelia/plugin-vite';

export default defineConfig({
  plugins: [
    aurelia({ useDev: true }),
  ],
});

Webpack

Add an alias to resolve.alias in your webpack.config.js, similar to the scaffolding template at:

https://github.com/aurelia/new/blob/06f06862bab5f7b13107237a69cf59de1385d126/webpack/webpack.config.js#L117-L123

Other bundlers/dev servers

The dist folder of an Aurelia core package looks like this:

Whenever there's a request to retrieve dist/esm/index.mjs, you can redirect it to dist/esm/index.dev.mjs.

Error docs index

In development builds, follow the documentation link printed in the error message. Some AURxxxx codes are reused across packages; the link printed by the package is the authoritative source.

Core

Routing

Optional packages

Last updated

Was this helpful?