{"record":{"id":"00bebe9c827cc063","repo":"DioxusLabs/dioxus","slug":"root-text","errorCode":null,"errorMessage":"root text","messagePattern":"root text","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/core/src/diff/node.rs","lineNumber":379,"sourceCode":"        &self,\n        child: VNodeChild<'_>,\n        mount: MountId,\n        target_id: crate::RenderTargetId,\n        dom: &VirtualDom,\n        edge: ElementEdge,\n    ) -> Option<ElementId> {\n        match child {\n            VNodeChild::Dynamic(anchor) => {\n                self.dynamic_anchor_edge_element(anchor, mount, dom, target_id, edge)\n            }\n            VNodeChild::Element(element) => self.find_static_anchor_in_target(\n                element.anchor_index().expect(\"root element\"),\n                mount,\n                target_id,\n                dom,\n            ),\n            VNodeChild::Text(text) => self.find_static_anchor_in_target(\n                text.anchor_index().expect(\"root text\"),\n                mount,\n                target_id,\n                dom,\n            ),\n        }\n    }\n\n    fn dynamic_anchor_edge_element(\n        &self,\n        anchor: DynamicAnchor<'_>,\n        mount: MountId,\n        dom: &VirtualDom,\n        target_id: crate::RenderTargetId,\n        edge: ElementEdge,\n    ) -> Option<ElementId> {\n        let scan = EdgeScan::live(target_id);\n        match edge {\n            ElementEdge::First => anchor.nodes().find_map(|slot| {","sourceCodeStart":361,"sourceCodeEnd":397,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/core/src/diff/node.rs#L361-L397","documentation":"Internal invariant: a root-level child used as a text edge was expected to be resolvable as a static text node but had no valid anchor. Indicates malformed template root children during element lookup.","triggerScenarios":"Thrown at packages/core/src/diff/node.rs:379 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["This is an internal invariant about root text node creation. Report it with a minimal reproduction to the Dioxus issue tracker."],"exampleFix":null,"handlingStrategy":"type-guard","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-14T00:17:10.932Z"}