Main Problem: After switching to build mode, the app shows a blank screen and multiple cascading issues.
Issues encountered:
Blank screen — Frontend not rendering despite server running
React version mismatch — ReactSharedInternals undefined due to React 18.2.0 vs 18.3.1
Database not running — PostgreSQL not started, causing backend failure
NODE_ENV conflict — TypeScript error: 'NODE_ENV' is specified more than once in server/env.ts
npm overrides conflict — Override conflicts with direct dependencies
Solutions attempted (unsuccessful):
Fixed React versions to 18.2.0
Added/removed npm overrides
Updated tsconfig.json to isolate types
Cleaned and reinstalled dependencies
Started database separately
Commented out problematic jobs
Current status: Multiple fixes applied, but the root cause remains unresolved. The app still fails to render properly after build, suggesting a deeper configuration or dependency issue in the Wasp build process.