CRITICAL BUG REPORT: Figma Make Publish Broken - Preview Works, Published Site Shows Blank Page
Issue Summary: Figma Make Preview mode works perfectly, but the Published site at https://a2aiplatformupdated.figma.site/ consistently shows a blank page. This has persisted across 30+ publish attempts and multiple debugging approaches.
Error Details:
- Console Error: "Failed to execute code layer q: Code export Code8_410.default (Code8_410) is not a function"
- Console Error: "Root element not found!"
- Reference Error ID: 6aa83328-9e7f-4205-8c99-5fcfb5e5307f
What Works: ✓ Preview mode displays the full application correctly ✓ Build completes successfully (301KB bundle, 1997 modules) ✓ figma__entrypoint.ts correctly exports component loader: export const Code8_410 = () => import('./src/app/AppFinal.tsx'); ✓ AppFinal.tsx has valid default export: export default function AppFinal() { ... } ✓ Minimal test component (AppMinimal.tsx with zero dependencies, inline styles only) ALSO shows blank page when published
What Fails: ✗ Published site shows blank white page ✗ Console shows "Code export Code8_410.default is not a function" ✗ Published site tries to load main.tsx (expecting index.html with root element) instead of using Figma Make's component loader
Technical Context:
- Project: A²AI SAP consulting platform (React 18.3 + TypeScript + Tailwind CSS v4)
- Figma Make file: https://a2aiplatformupdated.figma.site/
- Published URL failing across all version codes (Code0_8 through Code8_450)
- Build system: Vite 6.3.5
- Component export pattern follows Figma Make documentation
Debugging Attempts (30+ iterations):
- Removed all React Router dependencies
- Created router-free components (AppSimple, NavigationSimple, FooterSimple)
- Switched from HashRouter to state-based navigation
- Tested with minimal component (AppMinimal - no imports, inline styles only)
- Verified export syntax matches Figma Make requirements
- Added multiple version code exports (Code0_8 through Code8_450)
- Removed index.html script tags
- Changed component file names (App.tsx → App-8.tsx → AppFinal.tsx → AppMinimal.tsx)
Critical Finding: The fact that even AppMinimal.tsx (a component with ZERO dependencies, just inline styles and basic HTML) shows a blank page when published confirms this is a Figma Make platform issue, not a code issue.
Request:
- Investigation into why Publish differs from Preview mode
- Why published site expects index.html/main.tsx instead of using figma__entrypoint.ts component loader
- Token refund for 90,000+ tokens spent debugging this platform issue over 2+ hours
This report has been submitted to Figma Support. They should follow up with you about the platform issue and token refund request.
