{"record":{"id":"4a2120b0a89ca021","repo":"emberjs/ember.js","slug":"attempted-to-resolve-a-type-in-a-strict-mode-te","errorCode":null,"errorMessage":"Attempted to resolve a ${type} in a strict mode template, but that value was not in scope: ${meta.symbols.upvars![expr[1]] ?? '{unknown variable}'}","messagePattern":"Attempted to resolve a (.+?) in a strict mode template, but that value was not in scope: (.+?)'\\}","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/@glimmer/opcode-compiler/lib/opcode-builder/helpers/resolution.ts","lineNumber":444,"sourceCode":"  expr: Expressions.GetStrictFree,\n  resolver: Nullable<ClassicResolver>,\n  meta: BlockMetadata,\n  constants: ResolutionTimeConstants,\n  type: string\n): number {\n  let {\n    symbols: { upvars },\n  } = assertResolverInvariants(meta);\n\n  let name = unwrap(upvars[expr[1]]);\n  let helper = resolver?.lookupBuiltInHelper?.(name) ?? null;\n\n  if (DEBUG && helper === null) {\n    assert(!meta.isStrictMode, 'Strict mode errors should already be handled at compile time');\n\n    // Keyword helper did not exist, which means that we're attempting to use a\n    // value of some kind that is not in scope\n    throw new Error(\n      `Attempted to resolve a ${type} in a strict mode template, but that value was not in scope: ${\n        // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n        meta.symbols.upvars![expr[1]] ?? '{unknown variable}'\n      }`\n    );\n  }\n\n  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n  return constants.helper(helper!, name);\n}\n","sourceCodeStart":426,"sourceCodeEnd":455,"githubUrl":"https://github.com/emberjs/ember.js/blob/26f97246a8bf2e28edf26ac3093da2e86c04ffc5/packages/@glimmer/opcode-compiler/lib/opcode-builder/helpers/resolution.ts#L426-L455","documentation":"Error \"Attempted to resolve a ${type} in a strict mode template, but that value was not in scope: ${meta.symbols.upvars![expr[1]] ?? '{unknown variable}'}\" thrown in emberjs/ember.js.","triggerScenarios":"Thrown at packages/@glimmer/opcode-compiler/lib/opcode-builder/helpers/resolution.ts:444 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"}