{#each items as itemValue, index (element.repeat?.key && typeof itemValue === "object" && itemValue !== null ? String((itemValue as any)[element.repeat.key] ?? index) : String(index))} {@const basePath = `${element.repeat!.statePath}/${index}`} {#if element.children} {#each element.children as childKey (childKey)} {#if spec.elements[childKey]} {:else if !loading} {console.warn( `[json-render] Missing element "${childKey}" referenced as child of "${element.type}". This element will not render.`, )} {/if} {/each} {/if} {/each}