{"record":{"id":"2337a4f859933846","repo":"DioxusLabs/dioxus","slug":"component-not-found-in-registry","errorCode":null,"errorMessage":"Component '{}' not found in registry","messagePattern":"Component '(.+?)' not found in registry","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/cli/src/cli/component.rs","lineNumber":532,"sourceCode":"            .collect()\n    }\n}\n\nimpl Deref for ResolvedComponent {\n    type Target = Component;\n\n    fn deref(&self) -> &Self::Target {\n        &self.component\n    }\n}\n\n// Find a component by name in a list of components\nfn find_component(components: &[ResolvedComponent], component: &str) -> Result<ResolvedComponent> {\n    components\n        .iter()\n        .find(|c| c.name == component)\n        .cloned()\n        .ok_or_else(|| anyhow::anyhow!(\"Component '{}' not found in registry\", component))\n}\n\n/// Get the path to the components module, defaulting to src/components\nfn components_root(module_path: Option<&Path>, config: &DioxusConfig) -> Result<PathBuf> {\n    if let Some(module_path) = module_path {\n        return Ok(PathBuf::from(module_path));\n    }\n\n    let root = Workspace::crate_root_from_path()?;\n\n    if let Some(component_path) = &config.components.components_dir {\n        return Ok(root.join(component_path));\n    }\n\n    Ok(root.join(\"src\").join(\"components\"))\n}\n\n/// Get the path to the global assets directory, defaulting to assets","sourceCodeStart":514,"sourceCodeEnd":550,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/cli/component.rs#L514-L550","documentation":"Lookup failure in find_component: the component name supplied to a dx component subcommand was not found among the ResolvedComponent entries loaded from the registry. The input at fault is the user-provided component name argument; the registry contents are valid, the name simply does not match.","triggerScenarios":"Thrown at packages/cli/src/cli/component.rs:532 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The component is not in the registry. Check the component name and install or update the registry."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24f6a829df0dfa203961a98ea4cae21c2ff27e28","analyzedAt":"2026-08-23T07:10:14.078Z","contentChangedAt":"2026-08-23T07:10:14.078Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}