diff --git a/frontend/lib/registry/components/split-panel-layout2/index.ts b/frontend/lib/registry/components/split-panel-layout2/index.ts index 754122b8..1679336b 100644 --- a/frontend/lib/registry/components/split-panel-layout2/index.ts +++ b/frontend/lib/registry/components/split-panel-layout2/index.ts @@ -14,10 +14,10 @@ import { defaultConfig, componentMeta } from "./config"; export const SplitPanelLayout2Definition = createComponentDefinition({ id: componentMeta.id, name: componentMeta.name, - name_eng: componentMeta.nameEng, + name_eng: componentMeta.name_eng, description: componentMeta.description, category: ComponentCategory.LAYOUT, - web_type: componentMeta.webType as WebType, + web_type: componentMeta.web_type as WebType, component: SplitPanelLayout2Wrapper, default_config: defaultConfig, default_size: { width: 1200, height: 600 }, diff --git a/frontend/lib/registry/utils/createComponentDefinition.ts b/frontend/lib/registry/utils/createComponentDefinition.ts index 0e727539..d254587d 100644 --- a/frontend/lib/registry/utils/createComponentDefinition.ts +++ b/frontend/lib/registry/utils/createComponentDefinition.ts @@ -97,7 +97,8 @@ export function createComponentDefinition(options: CreateComponentDefinitionOpti const validationResult = validateComponentDefinition(definition); if (!validationResult.isValid) { - throw new Error(`컴포넌트 정의 검증 실패: ${validationResult.errors.join(", ")}`); + console.error("🔴 검증 실패 컴포넌트:", id, "web_type:", web_type, "options keys:", Object.keys(options)); + throw new Error(`컴포넌트 정의 검증 실패 (${id}): ${validationResult.errors.join(", ")}`); } // 경고사항 출력 (개발 모드에서만) - 로그 제거