emberjs/ember.js · error · Error

Accessing `this.element` is not allowed in non-interactive e

Error message

Accessing `this.element` is not allowed in non-interactive environments (such as FastBoot).

What it means

Error "Accessing `this.element` is not allowed in non-interactive environments (such as FastBoot)." thrown in emberjs/ember.js.

Source

Thrown at packages/@ember/-internals/glimmer/lib/renderer.ts:350

  register(view: any): void {
    let id = getViewId(view);
    assert(
      'Attempted to register a view with an id already in use: ' + id,
      !this._viewRegistry[id]
    );
    this._viewRegistry[id] = view;
  }

  unregister(view: any): void {
    delete this._viewRegistry[getViewId(view)];
  }

  getElement(component: View): Nullable<Element> {
    if (this._isInteractive) {
      return getViewElement(component);
    } else {
      throw new Error(
        'Accessing `this.element` is not allowed in non-interactive environments (such as FastBoot).'
      );
    }
  }

  getBounds(component: View): {
    parentElement: SimpleElement;
    firstNode: SimpleNode;
    lastNode: SimpleNode;
  } {
    let bounds: Bounds | null = component[BOUNDS];

    assert('object passed to getBounds must have the BOUNDS symbol as a property', bounds);

    let parentElement = bounds.parentElement();
    let firstNode = bounds.firstNode();
    let lastNode = bounds.lastNode();

View on GitHub (pinned to 26f97246a8)

When it happens

Trigger: Thrown at packages/@ember/-internals/glimmer/lib/renderer.ts:350 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of emberjs/ember.js@26f97246a8 (2026-09-01). Data as JSON: /api/errors/9aa571a27dc4d468. Report an issue: GitHub.