[v11] The examples app is never typechecked, and it has real API errors
Author: DennisSmolekCreated Sep 1, 2026Updated Sep 7, 2026
Labelsreleased on @alpharepo-managementv11effort:Magent-ok
Problem
The examples app is not typechecked by anything.
yarn testrunstscagainst the roottsconfig.json, which coverssrcand.storybook— notexamples/.yarn examples/yarn examples:webgpurunvite, andexamples/package.json's build is plainvite build, which does not typecheck.
So examples/tsconfig.json exists and nothing ever runs it. It currently reports a substantial number of errors:
src/demos/core/controls/FaceControls.tsx ~12 errors
src/demos/core/controls/Select.tsx TS2322 — Edges does not accept children
src/demos/core/controls/TransformControls.tsx TS2322
src/demos/core/abstractions/Example.tsx TS2322 — MouseEvent vs ThreeEvent
src/components/Scene.tsx TS2305 — 'Grid' is not exported from @react-three/drei/core
src/demos/core/controls/KeyboardControls.tsx TS6133
src/demos/core/controls/ScrollControls.tsx TS6133Some are genuinely interesting. Scene.tsx importing Grid from @react-three/drei/core fails because Grid is not in core — it lives in legacy and webgpu. That is exactly the entry-point mistake yarn test:bundles exists to catch, and the examples app is outside its reach.
Task
- Add
yarn --cwd examples typecheck(tsc --noEmit) and wire it intoyarn test, or into CI as its own job. - Fix or explicitly suppress what it surfaces. Anything that is a real API misuse (
Gridfromcore,Edgeschildren,FaceControlsprops) should be fixed, not suppressed — those are the examples users copy from.
Notes
- Expect some errors to be genuine drift against r3f v10 / three 0.185 rather than examples bugs.
- The examples app is a separate project with its own
node_modules(yarn --cwd examples install), so CI needs that install step.
Acceptance
examples/ is typechecked in CI and passes.
Source: pmndrs/drei