{"record":{"id":"95e70fe9f7b57711","repo":"theforeman/foreman","slug":"component-not-found-name-among-this-register","errorCode":null,"errorMessage":"Component not found: ${name} among ${this.registeredComponents()}","messagePattern":"Component not found: (.+?) among (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"webpack/assets/javascripts/react_app/components/componentRegistry.js","lineNumber":71,"sourceCode":"    if (!name || !type) {\n      throw new Error('Component name or type is missing');\n    }\n    if (this.registry[name]) {\n      // eslint-disable-next-line no-console\n      console.warn(`Component name already taken: ${name}`);\n    } else {\n      this.registry[name] = { type, store, data };\n    }\n\n    return this.registry;\n  },\n\n  registerMultiple(componentObjs) {\n    return Object.values(componentObjs).forEach(obj => this.register(obj));\n  },\n\n  getComponent(name) {\n    if (!this.registry[name]) {\n      throw new Error(\n        `Component not found: ${name} among ${this.registeredComponents()}`\n      );\n    }\n\n    return this.registry[name];\n  },\n\n  wrapperFactory() {\n    return new WrapperFactory();\n  },\n\n  registeredComponents() {\n    return Object.keys(this.registry).join(', ');\n  },\n\n  defaultWrapper(component, data = null, store = null, flattenData = false) {\n    const factory = this.wrapperFactory();","sourceCodeStart":53,"sourceCodeEnd":89,"githubUrl":"https://github.com/theforeman/foreman/blob/6b05625475cfe6aac31a88f8c8ee6e62e4efe620/webpack/assets/javascripts/react_app/components/componentRegistry.js#L53-L89","documentation":"Error \"Component not found: ${name} among ${this.registeredComponents()}\" thrown in theforeman/foreman.","triggerScenarios":"Thrown at webpack/assets/javascripts/react_app/components/componentRegistry.js:71 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":"6b05625475cfe6aac31a88f8c8ee6e62e4efe620","analyzedAt":"2026-08-23T17:46:34.094Z","schemaVersion":2},"datasetVersion":"2026-08-23T21:17:23.414Z"}