Record<string, T> index type prevents 'error' in narrowing, causing string | T to leak into ReactNode positions. Fix: precompute bootstrapError (string|null) and bootstrapEntries ([string, T][]) before JSX so TypeScript can resolve types correctly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>