emberjs/ember.js · error

You attempted to invoke a path (\`${resolution.path}\`) but

Error message

You attempted to invoke a path (\`${resolution.path}\`) but ${resolution.head} was not in scope

What it means

Error "You attempted to invoke a path (\`${resolution.path}\`) but ${resolution.head} was not in scope" thrown in emberjs/ember.js.

Source

Thrown at packages/@glimmer/syntax/lib/v2/normalize.ts:206

      case 'NullLiteral':
      case 'BooleanLiteral':
      case 'NumberLiteral':
      case 'StringLiteral':
      case 'UndefinedLiteral':
        return this.block.builder.literal(expr.value, this.block.loc(expr.loc));
      case 'PathExpression':
        assert(resolution, '[BUG] resolution is required');
        return this.path(expr, resolution);
      case 'SubExpression': {
        // expr.path used to incorrectly have the type ASTv1.Expression
        if (isLiteral(expr.path)) {
          assertIllegalLiteral(expr.path, expr.loc);
        }

        let resolution = this.block.resolutionFor(expr, SexpSyntaxContext);

        if (resolution.result === 'error') {
          throw generateSyntaxError(
            `You attempted to invoke a path (\`${resolution.path}\`) but ${resolution.head} was not in scope`,
            expr.loc
          );
        }

        return this.block.builder.sexp(
          this.callParts(expr, resolution.result),
          this.block.loc(expr.loc)
        );
      }
    }
  }

  private path(
    expr: ASTv1.MinimalPathExpression,
    resolution: ASTv2.FreeVarResolution
  ): ASTv2.KeywordExpression | ASTv2.PathExpression {
    let loc = this.block.loc(expr.loc);

View on GitHub (pinned to 26f97246a8)

When it happens

Trigger: Thrown at packages/@glimmer/syntax/lib/v2/normalize.ts:206 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/2089d8e2df136aa4. Report an issue: GitHub.