# AUR0012

### **Error message**

Attempted to jitRegister an interface: `yyyy`

### **Parameters**

name (string)

### Error explanation

This error occurs when the DI container tries to automatically register (jitRegister) an interface key (created with `DI.createInterface`) that has not been registered and does not have a default implementation. The container cannot instantiate interfaces directly, so you must provide a registration or a default implementation.

### Common causes

* Calling `container.get(key)` with an interface key that has not been registered.
* Forgetting to register the interface or provide a default implementation when creating the interface.
* A plugin or library expected to register the interface did not do so.

### How to fix

* Register the interface with the container before calling `container.get(key)`.
* When creating the interface with `DI.createInterface`, provide a default implementation if appropriate.
* Double-check that the key used for registration matches the key used for resolution.
* If using plugins or libraries, ensure they are properly configured and registered.

### Debugging tips

* Check the stack trace to see where the resolution was attempted.
* Search your codebase for all registrations and resolutions of the interface key in question.
* If using plugins, try disabling them one at a time to isolate the source.

Please also note that this error could be caused by a plugin and not your application. After ruling out that the error is not being caused by your code, try removing any registered plugins one at a time to see if the error resolves itself.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aurelia.io/developer-guides/error-messages/0001-to-0023/aur0012.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
