{"record":{"id":"4dbb4e60f295d307","repo":"slint-ui/slint","slug":"native-item-is-not-registered","errorCode":null,"errorMessage":"native item `{}` is not registered","messagePattern":"native item `(.+?)` is not registered","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/interpreter/instance.rs","lineNumber":830,"sourceCode":"    parent: Weak<SubComponentInstance>,\n) -> Pin<Rc<SubComponentInstance>> {\n    let sc = &cu.sub_components[sub_idx];\n    let registry = ItemRegistry::global();\n\n    let properties = sc\n        .properties\n        .iter()\n        .map(|p| Rc::pin(Property::new(crate::eval::default_value_for_type(&p.ty))))\n        .collect();\n    let callbacks = sc.callbacks.iter().map(|_| Rc::pin(Callback::default())).collect();\n    let callback_trackers =\n        sc.callbacks.iter().map(|c| c.needs_tracker.then(|| Rc::pin(Property::new(())))).collect();\n    let items =\n        sc.items\n            .iter()\n            .map(|item| {\n                registry.factory(&item.ty.class_name).unwrap_or_else(|| {\n                    panic!(\"native item `{}` is not registered\", item.ty.class_name)\n                })()\n            })\n            .collect();\n    let repeaters = sc\n        .repeated\n        .iter()\n        .map(|rep| {\n            if rep.data_prop.is_none() {\n                RepeaterOrConditional::Conditional(Box::pin(Conditional::default()))\n            } else {\n                RepeaterOrConditional::Repeater(Box::pin(Repeater::default()))\n            }\n        })\n        .collect();\n\n    // `Rc::new_cyclic` gives nested sub-components a `Weak` to their parent.\n    // `SubComponentInstance` is `Unpin` (every pinned field lives behind its own\n    // `Pin<Rc<_>>`), so `Pin::new` on the resulting `Rc` needs no unsafe.","sourceCodeStart":812,"sourceCodeEnd":848,"githubUrl":"https://github.com/slint-ui/slint/blob/3fd8f2ec03c2aa8a95d5f4b9daa299c7b8bf4016/internal/interpreter/instance.rs#L812-L848","documentation":"Error \"native item `{}` is not registered\" thrown in slint-ui/slint.","triggerScenarios":"Thrown at internal/interpreter/instance.rs:830 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Register the native item type with the interpreter before instantiating the component.","Check the item name for typos."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3fd8f2ec03c2aa8a95d5f4b9daa299c7b8bf4016","analyzedAt":"2026-08-19T23:23:16.610Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}