Skip to content

27 showcase apps crash at render (undefined refs, syntax errors, dup imports) — full audit #191

Description

@developer-ainative

Summary

A headless-browser render audit of all 189 showcase previews found 27 apps with confirmed runtime crashes (react pageerrors, Babel/syntax errors, or blank renders). These are user-visible: clicking the app in the showcase shows a broken or error screen.

Method: rendered each /api/preview/{chatId} in headless Chromium, captured console/pageerrors + DOM size. Only errors with concrete messages are listed (loading-race false positives excluded).

Confirmed crashes by root cause

A. Unguarded property access (undefined) (7)

B. Undefined variable reference (5)

C. Codegen syntax error (7)

D. Duplicate identifier/import (2)

E. Object rendered as React child (1)

F. Blank render (no error captured) (4)

G. Other (1)

Notes

  • The biggest class is undefined access/refs (groups A+B): generated code calls .toLowerCase() etc. on possibly-undefined values, or references variables/functions it never declared (sensorData, kanbanTasks, getDealsByStageData). The codegen system prompt warns about defensive access but it isn't enforced.
  • Group D (duplicate identifier) is the known dup-import defect (fix(preview): move dup-import de-dupe to AFTER import injection (#161) #165). Group E (object-as-child) overlaps Canned 'Admin Panel' landing prompt crashes: 'Objects are not valid as a React child' #184.
  • Recommended fix: a post-generation validation/autoFixCode pass that (1) rejects/repairs undefined variable references, (2) wraps unguarded property access, (3) de-dupes imports — before an app is saved or marked is_showcase. Consider a lightweight headless render smoke-check in the validation gate so crashing apps never reach the showcase.
  • Separately, ~19 apps flagged as nav-timeout in the raw audit are likely false positives (loading-state race in the harness) and need re-verification; not included above.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions