Google Studio Build App Preview Does Not Work

Update – issue resolved

The white screen was caused by apps loading React and related libraries from https://aistudiocdn``.. In some environments this domain fails to load, so React never initializes and the app renders nothing. This affected older apps, while newly created ones still worked.

Fix:
In index.html, update the importmap:

  • Replace all https://aistudiocdn.com/... URLs with https://esm.sh/...

  • For libraries that depend on React (e.g. lucide-react), append ?external=react to prevent duplicate React instances.

Example:
“react”: “https://esm.sh/react@19.2.0”,
“react-dom”: “https://esm.sh/react-dom@19.2.0”,
“lucide-react”: “https://esm.sh/lucide-react@0.556.0?external=react”

After saving, both AI Studio preview and deployed Cloud Run apps load correctly again.