AUR0763
Error Message
AUR0763: Trying to retrieve a custom element controller from a node, but the provided node <{{nodeName}} /> is not a custom element or containerless host.
Where {{nodeName}} is the tag name (or #comment for comment nodes) of the provided DOM node.
Description
This error has the same root cause as AUR0762: Aurelia cannot find an associated custom element controller for the provided node.
Example Trigger
import { CustomElement } from '@aurelia/runtime-html';
// ❌ Passing an element that is not a custom element host
const span = document.querySelector('span')!;
CustomElement.for(span); // throws AUR0763Correct Usage
See AUR0762 for guidance on targeting the correct host node.
Related Errors
Last updated
Was this helpful?