Priority: High - Blocking Production Deployment
Issue Type: Build Failure / Next.js Compatibility
-–
PROBLEM SUMMARY:
Our Next.js 15 application builds successfully locally but fails on Vercel with an ENOENT file system error during static generation.
ERROR DETAILS:
```
[Error: ENOENT: no such file or directory, rename ‘/vercel/path0/coinbase/fc-minikit/.next/export/500.html’ → ‘/vercel/path0/coinbase/fc-minikit/.next/server/pages/500.html’]
```
EVIDENCE - LOCAL vs VERCEL:
LOCAL BUILD (SUCCESS):
- Next.js 15.5.3 + React 19.2.0
- Build completes successfully in 10.9s
- 48 static pages generated without errors
- All TypeScript strict mode errors resolved
- No ENOENT error
VERCEL BUILD (FAILURE):
- Same codebase, same dependencies
- ENOENT error during static generation
- Build progresses much further than before (compilation succeeds)
- Fails at static page generation phase
TECHNICAL SPECIFICATIONS:
- Next.js: 15.5.3
- React: 19.2.0
- Node.js: Latest LTS
- Framework: Next.js App Router
- Repository: `https://github.com/cc-deployments/deployment-01/tree/sohey-testing\`
TROUBLESHOOTING ATTEMPTED:
1.
Disabled static generation - `experimental: { staticGenerationRetryCount: 0 }`
2.
Created custom 500.tsx - Dynamic error handling
3.
Pre-build scripts - Attempted to create missing files
4.
Provider configuration - Fixed wallet integration
5.
TypeScript strict mode - Resolved all compilation errors
RELATED GITHUB ISSUES:
- [vercel/next.js#84283]( [Bug] Next.js 15.5.3 + React 19 RC - Build fails with React error #31 during static generation · Issue #84283 · vercel/next.js · GitHub ) - React error #31 with React 19 RC and Next.js 15
- [vercel/next.js#39952]( Serverless function error with custom 500 page · Issue #39952 · vercel/next.js · GitHub ) - ENOENT error with 500 page
REQUEST:
Since this appears to be a Vercel-specific Next.js 15 compatibility issue, we need:
1. Immediate workaround for Next.js 15 + React 19 deployments
2. Timeline for when this will be resolved
3. Alternative deployment configuration if needed
IMPACT:
Our production application is ready but blocked by this Vercel deployment issue. The local build success confirms our code is correct.