Vercel Build Error: PostCSS Configuration Issue
Current Behavior
- Build process fails during Vercel deployment
- Error occurs in src/styles/globals.css
- Webpack encounters a TypeError when processing CSS
Error Details
TypeError: Cannot read properties of undefined (reading 'All')
Reproduction Steps
- Deploy to Vercel
- Build process fails at CSS processing stage
Environment
- Next.js version: 15.2.4
- Bun version: 1.2.8
- Vercel CLI version: 41.4.1
Logs
[10:47:17.657] Cloning github.com/mAmineChniti/StorySync (Branch: master, Commit: 63cd0f8)[10:47:17.882] Cloning completed: 225.000ms[10:47:21.392] Restored build cache from previous deployment (eP8aY7RZTTNMKGuc6YEZaUXZxrEi)[10:47:21.479] Running build in Washington, D.C., USA (East) – iad1[10:47:22.218] Running "vercel build"[10:47:22.608] Vercel CLI 41.4.1[10:47:22.926] Running "install" command: `bun install`...[10:47:23.021] bun install v1.2.5 (013fdddc)[10:47:23.967] [10:47:23.968] $ husky[10:47:24.023] [10:47:24.024] + @tailwindcss/postcss@4.1.1[10:47:24.024] + @tanstack/eslint-plugin-query@5.71.5[10:47:24.024] + @types/node@22.14.0[10:47:24.024] + @types/react@19.1.0[10:47:24.024] + @types/react-dom@19.1.1[10:47:24.024] + eslint-plugin-prettier@5.2.6[10:47:24.024] + @hookform/resolvers@5.0.1[10:47:24.024] + @tanstack/react-query@5.71.5[10:47:24.024] + lucide-react@0.487.0[10:47:24.024] + react-scan@0.3.3[10:47:24.025] + tailwindcss@4.1.1[10:47:24.025] [10:47:24.025] 78 packages installed [1018.00ms][10:47:24.033] Detected Next.js version: 15.2.4[10:47:24.034] Running "bun run build"[10:47:24.039] $ NEXT_TELEMETRY_DISABLED=1 next build[10:47:24.980] ▲ Next.js 15.2.4[10:47:24.980] - Experiments (use with caution):[10:47:24.980] ✓ reactCompiler