{"record":{"id":"6af17215f0eadfe9","repo":"bevyengine/bevy","slug":"no-reflectcomponent-nor-reflectbundle-registra","errorCode":null,"errorMessage":"no `ReflectComponent` nor `ReflectBundle` registration found for `{}`","messagePattern":"no `ReflectComponent` nor `ReflectBundle` registration found for `(.+?)`","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/bevy_ecs/src/reflect/bundle.rs","lineNumber":250,"sourceCode":"                    .map(|bundle| Box::new(bundle).into_reflect())\n            },\n        })\n    }\n}\n\nfn apply_field(entity: &mut EntityMut, field: &dyn PartialReflect, registry: &TypeRegistry) {\n    let Some(type_id) = field.try_as_reflect().map(Any::type_id) else {\n        panic!(\n            \"`{}` did not implement `Reflect`\",\n            field.reflect_type_path()\n        );\n    };\n    if let Some(reflect_component) = registry.get_type_data::<ReflectComponent>(type_id) {\n        reflect_component.apply(entity.reborrow(), field);\n    } else if let Some(reflect_bundle) = registry.get_type_data::<ReflectBundle>(type_id) {\n        reflect_bundle.apply(entity.reborrow(), field, registry);\n    } else {\n        panic!(\n            \"no `ReflectComponent` nor `ReflectBundle` registration found for `{}`\",\n            field.reflect_type_path()\n        );\n    }\n}\n\nfn apply_or_insert_field_mapped(\n    entity: &mut EntityWorldMut,\n    field: &dyn PartialReflect,\n    registry: &TypeRegistry,\n    mapper: &mut dyn EntityMapper,\n    relationship_hook_mode: RelationshipHookMode,\n) {\n    let Some(type_id) = field.try_as_reflect().map(Any::type_id) else {\n        panic!(\n            \"`{}` did not implement `Reflect`\",\n            field.reflect_type_path()\n        );","sourceCodeStart":232,"sourceCodeEnd":268,"githubUrl":"https://github.com/bevyengine/bevy/blob/396ca727080776bd313bb892423b7d94e03b81b4/crates/bevy_ecs/src/reflect/bundle.rs#L232-L268","documentation":"Panic in apply_field: the field's TypeId was resolved, but the type registry has neither ReflectComponent nor ReflectBundle type data for it, so there is no strategy to push the value onto the entity. The field's type was never registered as a component/bundle in this registry.","triggerScenarios":"Thrown at crates/bevy_ecs/src/reflect/bundle.rs:250 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Register the type: app.register_type::<MyComponent>() before applying reflected bundles","Register a ReflectBundle for bundle-typed fields","Check registry.get_type_data before applying and report a descriptive error"],"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"}