{"record":{"id":"a6de3fbc917872f4","repo":"bevyengine/bevy","slug":"no-reflectcomponent-registration-found-for","errorCode":null,"errorMessage":"no `ReflectComponent` registration found for `{}`","messagePattern":"no `ReflectComponent` registration found for `(.+?)`","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/bevy_ecs/src/reflect/bundle.rs","lineNumber":291,"sourceCode":"            entity,\n            field,\n            registry,\n            mapper,\n            relationship_hook_mode,\n        );\n    } else if let Some(reflect_bundle) = registry.get_type_data::<ReflectBundle>(type_id) {\n        reflect_bundle.apply_or_insert_mapped(\n            entity,\n            field,\n            registry,\n            mapper,\n            relationship_hook_mode,\n        );\n    } else {\n        let is_component = entity.world().components().get_id(type_id).is_some();\n\n        if is_component {\n            panic!(\n                \"no `ReflectComponent` registration found for `{}`\",\n                field.reflect_type_path(),\n            );\n        } else {\n            panic!(\n                \"no `ReflectBundle` registration found for `{}`\",\n                field.reflect_type_path(),\n            )\n        }\n    }\n}\n","sourceCodeStart":273,"sourceCodeEnd":303,"githubUrl":"https://github.com/bevyengine/bevy/blob/396ca727080776bd313bb892423b7d94e03b81b4/crates/bevy_ecs/src/reflect/bundle.rs#L273-L303","documentation":"Thrown by apply_or_insert_field_mapped when reflecting a bundle field onto an entity: the field's TypeId is a known component in the World, but the TypeRegistry has no ReflectComponent type data for it, so reflection cannot construct or apply it.","triggerScenarios":"Thrown at crates/bevy_ecs/src/reflect/bundle.rs:291 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Derive Reflect on the component and register it with app.register_type::<T>()","Ensure the registry passed to the reflection call is the same one the app populates (e.g. AppTypeRegistry), not a fresh TypeRegistry::new()","If the type is a bundle rather than a component, register ReflectBundle data for it instead"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"396ca727080776bd313bb892423b7d94e03b81b4","analyzedAt":"2026-08-20T16:12:39.808Z","contentChangedAt":"2026-08-20T16:12:39.808Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}