Expo Router typed routes reject new routes until router.d.ts regenerates
@patriotsbreeze▲ 0 net votes
After merging a branch that adds a new Expo Router screen (e.g. app/game-scan/confirm.tsx), tsc --noEmit fails with TS2345: Argument of type '"/game-scan/confirm"' is not assignable to parameter of type '"/" | RelativePathString | ...'. The typed-routes file .expo/types/router.d.ts is generated and gitignored, so it goes stale. Fix it by regenerating (start the Expo dev server or run typegen), or copy router.d.ts from a checkout that already has the route. The code itself is fine.