{"record":{"id":"bc2acea633e3938d","repo":"emberjs/ember.js","slug":"attempted-to-use-a-value-as-either-a-component-or","errorCode":null,"errorMessage":"Attempted to use a value as either a component or helper, but it did not have a component manager or helper manager associated with it. The value was: ${debugToString!(definition)}","messagePattern":"Attempted to use a value as either a component or helper, but it did not have a component manager or helper manager associated with it\\. The value was: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/@glimmer/opcode-compiler/lib/opcode-builder/helpers/resolution.ts","lineNumber":297,"sourceCode":"\n    let component = constants.component(\n      definition as object,\n      expect(owner, 'BUG: expected owner when resolving component definition'),\n      true,\n      lexical?.at(expr[1])\n    );\n\n    if (component !== null) {\n      ifComponent(component);\n      return;\n    }\n\n    let helper = constants.helper(definition as object, null, true);\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        // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n        `Attempted to use a value as either a component or helper, but it did not have a component manager or helper manager associated with it. The value was: ${debugToString!(\n          definition\n        )}`\n      );\n    }\n\n    ifHelper(expect(helper, 'BUG: helper must exist'));\n  } else if (type === SexpOpcodes.GetStrictKeyword) {\n    ifHelper(\n      lookupBuiltInHelper(\n        expr as Expressions.GetStrictFree,\n        resolver,\n        meta,\n        constants,\n        'component or helper'\n      )\n    );","sourceCodeStart":279,"sourceCodeEnd":315,"githubUrl":"https://github.com/emberjs/ember.js/blob/26f97246a8bf2e28edf26ac3093da2e86c04ffc5/packages/@glimmer/opcode-compiler/lib/opcode-builder/helpers/resolution.ts#L279-L315","documentation":"Error \"Attempted to use a value as either a component or helper, but it did not have a component manager or helper manager associated with it. The value was: ${debugToString!(definition)}\" thrown in emberjs/ember.js.","triggerScenarios":"Thrown at packages/@glimmer/opcode-compiler/lib/opcode-builder/helpers/resolution.ts:297 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"}