{"record":{"id":"54485e00dce819b8","repo":"emberjs/ember.js","slug":"you-attempted-to-invoke-a-path-resolution-p","errorCode":null,"errorMessage":"You attempted to invoke a path (\\`{{${resolution.path}}}\\`) as a modifier, but ${resolution.head} was not in scope","messagePattern":"You attempted to invoke a path \\(\\\\`(.+?)\\}\\\\`\\) as a modifier, but (.+?) was not in scope","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/@glimmer/syntax/lib/v2/normalize.ts","lineNumber":620,"sourceCode":"\n    if (element.selfClosing) {\n      return el.selfClosingComponent(path, loc);\n    } else {\n      let blocks = children.assertComponent(tag, child.table, element.blockParams.length > 0);\n      return el.componentWithNamedBlocks(path, blocks, loc);\n    }\n  }\n\n  private modifier(m: ASTv1.ElementModifierStatement): ASTv2.ElementModifier {\n    // modifier.path used to incorrectly have the type ASTv1.Expression\n    if (isLiteral(m.path)) {\n      assertIllegalLiteral(m.path, m.loc);\n    }\n\n    let resolution = this.ctx.resolutionFor(m, ModifierSyntaxContext);\n\n    if (resolution.result === 'error') {\n      throw generateSyntaxError(\n        `You attempted to invoke a path (\\`{{${resolution.path}}}\\`) as a modifier, but ${resolution.head} was not in scope`,\n        m.loc\n      );\n    }\n\n    let callParts = this.expr.callParts(m, resolution.result);\n    return this.ctx.builder.modifier(callParts, this.ctx.loc(m.loc));\n  }\n\n  /**\n   * This method handles attribute values that are curlies, as well as curlies nested inside of\n   * interpolations:\n   *\n   * ```hbs\n   * <a href={{url}} />\n   * <a href=\"{{url}}.html\" />\n   * ```\n   */","sourceCodeStart":602,"sourceCodeEnd":638,"githubUrl":"https://github.com/emberjs/ember.js/blob/26f97246a8bf2e28edf26ac3093da2e86c04ffc5/packages/@glimmer/syntax/lib/v2/normalize.ts#L602-L638","documentation":"Error \"You attempted to invoke a path (\\`{{${resolution.path}}}\\`) as a modifier, but ${resolution.head} was not in scope\" thrown in emberjs/ember.js.","triggerScenarios":"Thrown at packages/@glimmer/syntax/lib/v2/normalize.ts:620 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"}