SPA mode monorepo not building: "Cannot access 'pg' before initialization" - TanStack