# AUR0002

### **Error message**

'xxxx' was registered with "none" resolver, are you injecting the right key?

### **Parameters**

Name of the key being resolved

### Error explanation

This error occurs when a key was registered with the "none" resolver, which means it is intentionally not resolvable from the DI container. This usually happens if you are trying to inject or resolve a key that was not meant to be resolved, or if there is a mismatch between the key you registered and the key you are trying to inject.

### Common causes

* You registered a key with the "none" resolver (e.g., for a marker or interface), but then tried to inject or resolve it.
* There is a typo or mismatch between the key you registered and the key you are injecting.
* You are using a plugin or library that registered a key with "none" resolver, but your code is trying to resolve it.

### How to fix

* Double-check the key you are injecting or resolving matches the key you registered.
* If you intended to resolve this key, register it with a proper resolver (e.g., `@singleton`, `@transient`, or a custom resolver).
* If you do not intend to resolve this key, remove the injection or resolution attempt.

### Debugging tips

* Check the stack trace to see where the resolution was attempted.
* Search your codebase for all registrations and injections of the key in question.
* If using plugins, check their documentation for expected registration patterns.


---

# 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/aur0002.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.
