fix(design-system): guard missing registry components

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Made-with: Cursor
This commit is contained in:
Jordi EnricandClaude Opus 4.6 committed 2026-04-10 12:23:12 +02:00
1 parent 9af1fa01c2
commit e2a0472ffc
1 file changed
+9
@@ -55,6 +55,9 @@ export function rehypeComponent() {
src = srcPath
} else {
const component = Index[style.name][name]
if (!component) {
continue
}
// console.log('got to ELSE STATEMENT')
// console.log('filename', fileName)
// console.log('name', name)
@@ -124,6 +127,9 @@ export function rehypeComponent() {
try {
for (const style of styles) {
const component = Index[style.name][name]
if (!component) {
continue
}
// console.log('GOT HERE')
const src = component.files[0]
@@ -176,6 +182,9 @@ export function rehypeComponent() {
try {
for (const style of styles) {
const component = Index[style.name][name]
if (!component) {
continue
}
// console.log('GOT HERE')
const src = component.files[0]