emberjs/ember.js · error · Error

Attempted to resolve a component, helper, or modifier, but n

Error message

Attempted to resolve a component, helper, or modifier, but no free vars were found

What it means

Error "Attempted to resolve a component, helper, or modifier, but no free vars were found" thrown in emberjs/ember.js.

Source

Thrown at packages/@glimmer/opcode-compiler/lib/opcode-builder/helpers/resolution.ts:63

export const isGetFreeModifier = makeResolutionTypeVerifier(SexpOpcodes.GetFreeAsModifierHead);

export const isGetFreeHelper = makeResolutionTypeVerifier(SexpOpcodes.GetFreeAsHelperHead);

export const isGetFreeComponentOrHelper = makeResolutionTypeVerifier(
  SexpOpcodes.GetFreeAsComponentOrHelperHead
);

interface ResolvedBlockMetadata extends BlockMetadata {
  owner: Owner;
  symbols: BlockSymbolNames & {
    upvars: string[];
  };
}

function assertResolverInvariants(meta: BlockMetadata): ResolvedBlockMetadata {
  if (DEBUG) {
    if (!meta.symbols.upvars) {
      throw new Error(
        'Attempted to resolve a component, helper, or modifier, but no free vars were found'
      );
    }

    if (!meta.owner) {
      throw new Error(
        'Attempted to resolve a component, helper, or modifier, but no owner was associated with the template it was being resolved from'
      );
    }
  }

  return meta as unknown as ResolvedBlockMetadata;
}

/**
 * <Foo/>
 * <Foo></Foo>
 * <Foo @arg={{true}} />

View on GitHub (pinned to 26f97246a8)

When it happens

Trigger: Thrown at packages/@glimmer/opcode-compiler/lib/opcode-builder/helpers/resolution.ts:63 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/5e6c9dee4613ef64. Report an issue: GitHub.