{"record":{"id":"39cd694f29444798","repo":"emberjs/ember.js","slug":"attempted-to-resolve-name-which-was-expected-39cd69","errorCode":null,"errorMessage":"Attempted to resolve `${name}`, which was expected to be a component or helper, but nothing was found.","messagePattern":"Attempted to resolve `(.+?)`, which was expected to be a component or helper, but nothing was found\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/@glimmer/opcode-compiler/lib/opcode-builder/helpers/resolution.ts","lineNumber":333,"sourceCode":"    );\n  } else {\n    let {\n      symbols: { upvars },\n      owner,\n    } = assertResolverInvariants(meta);\n\n    let name = unwrap(upvars[expr[1]]);\n    let definition = resolver?.lookupComponent?.(name, owner) ?? null;\n\n    if (definition !== null) {\n      ifComponent(constants.resolvedComponent(definition, name));\n    } else {\n      let helper = resolver?.lookupHelper?.(name, owner) ?? null;\n\n      if (DEBUG && helper === null) {\n        assert(!meta.isStrictMode, 'Strict mode errors should already be handled at compile time');\n\n        throw new Error(\n          `Attempted to resolve \\`${name}\\`, which was expected to be a component or helper, but nothing was found.`\n        );\n      }\n\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n      ifHelper(constants.helper(helper!, name));\n    }\n  }\n}\n\n/**\n * {{maybeHelperOrComponent}}\n */\nexport function resolveOptionalComponentOrHelper(\n  resolver: Nullable<ClassicResolver>,\n  constants: ProgramConstants,\n  meta: BlockMetadata,\n  [, expr, { ifComponent, ifHelper, ifValue }]: ResolveOptionalComponentOrHelperOp","sourceCodeStart":315,"sourceCodeEnd":351,"githubUrl":"https://github.com/emberjs/ember.js/blob/26f97246a8bf2e28edf26ac3093da2e86c04ffc5/packages/@glimmer/opcode-compiler/lib/opcode-builder/helpers/resolution.ts#L315-L351","documentation":"Error \"Attempted to resolve `${name}`, which was expected to be a component or helper, but nothing was found.\" thrown in emberjs/ember.js.","triggerScenarios":"Thrown at packages/@glimmer/opcode-compiler/lib/opcode-builder/helpers/resolution.ts:333 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"}