Symptom
chromatic CI step fails when building Storybook with error:
Error: Error: page.evaluate: TypeError: FE is not a function
at .../ShaderHero.stories-<hash>.js:1:295
Evidence pre-existing
gh run list --branch main --workflow Chromatic --limit 3 returns 3 consecutive failure runs since 2026-05-19:
Surfaced during the mobile-first Tier 1 cycle (docs-ai PR #46 / cofoundy/ui PR #8). NOT introduced by either PR — neither touches src/stories/landing/ShaderHero.stories.tsx or related shader components.
Hypothesis
FE is likely a minified bundle reference — Three.js / @react-three/fiber / shadergradient subpackage failing to initialize in headless Chromium under @storybook/test-runner / Chromatic's static build. Probably a bundler-target mismatch (CommonJS vs ESM) or a server-side import in a client-only component.
Repro
cd ~/cofoundy/packages/ui && pnpm storybook:build
- Open the built static Storybook in headless Chromium
- Navigate to ShaderHero story → console error fires
Suggested triage owner
UI infra / chromatic maintainer. Not blocking mobile-first Tier 1.
Cross-links
Symptom
chromaticCI step fails when building Storybook with error:Evidence pre-existing
gh run list --branch main --workflow Chromatic --limit 3returns 3 consecutivefailureruns since 2026-05-19:Surfaced during the mobile-first Tier 1 cycle (docs-ai PR #46 / cofoundy/ui PR #8). NOT introduced by either PR — neither touches
src/stories/landing/ShaderHero.stories.tsxor related shader components.Hypothesis
FEis likely a minified bundle reference — Three.js / @react-three/fiber / shadergradient subpackage failing to initialize in headless Chromium under@storybook/test-runner/ Chromatic's static build. Probably a bundler-target mismatch (CommonJS vs ESM) or a server-side import in a client-only component.Repro
cd ~/cofoundy/packages/ui && pnpm storybook:buildSuggested triage owner
UI infra / chromatic maintainer. Not blocking mobile-first Tier 1.
Cross-links