{"record":{"id":"66638ef987b3d3cc","repo":"emberjs/ember.js","slug":"you-attempted-to-invoke-a-path-resolution","errorCode":null,"errorMessage":"You attempted to invoke a path (\\`{{#${resolution.path}}}\\`) but ${resolution.head} was not in scope","messagePattern":"You attempted to invoke a path \\(\\\\`(.+?)\\}\\\\`\\) but (.+?) was not in scope","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/@glimmer/syntax/lib/v2/normalize.ts","lineNumber":506,"sourceCode":"    );\n  }\n\n  /**\n   * Normalizes a ASTv1.BlockStatement to an ASTv2.BlockStatement\n   */\n  BlockStatement(block: ASTv1.BlockStatement): ASTv2.InvokeBlock {\n    let { program, inverse } = block;\n    let loc = this.block.loc(block.loc);\n\n    // block.path used to incorrectly have the type ASTv1.Expression\n    if (isLiteral(block.path)) {\n      assertIllegalLiteral(block.path, loc);\n    }\n\n    let resolution = this.block.resolutionFor(block, BlockSyntaxContext);\n\n    if (resolution.result === 'error') {\n      throw generateSyntaxError(\n        `You attempted to invoke a path (\\`{{#${resolution.path}}}\\`) but ${resolution.head} was not in scope`,\n        loc\n      );\n    }\n\n    let callParts = this.expr.callParts(block, resolution.result);\n\n    return this.block.builder.blockStatement(\n      assign(\n        {\n          symbols: this.block.table,\n          program: this.Block(program),\n          inverse: inverse ? this.Block(inverse) : null,\n        },\n        callParts\n      ),\n      loc\n    );","sourceCodeStart":488,"sourceCodeEnd":524,"githubUrl":"https://github.com/emberjs/ember.js/blob/26f97246a8bf2e28edf26ac3093da2e86c04ffc5/packages/@glimmer/syntax/lib/v2/normalize.ts#L488-L524","documentation":"Error \"You attempted to invoke a path (\\`{{#${resolution.path}}}\\`) but ${resolution.head} was not in scope\" thrown in emberjs/ember.js.","triggerScenarios":"Thrown at packages/@glimmer/syntax/lib/v2/normalize.ts:506 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"26f97246a8bf2e28edf26ac3093da2e86c04ffc5","analyzedAt":"2026-09-01T05:01:28.182Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}