Next.js 16.0.1 has a bug with Turbopack when using route groups (admin) and (petugas). The error message is:
You cannot have two parallel pages that resolve to the same path.
Please check /(admin)/dashboard and /(petugas).
- Development: Server starts but shows 500 error when accessing pages
- Production Build: Build may fail with Turbopack
- Deployment: Vercel and other platforms may encounter issues
This is a known bug in Next.js 16.0.1 Turbopack with parallel route groups. The routes are correctly structured but Turbopack incorrectly interprets them as conflicting.
npm install next@15Monitor Next.js releases for a fix: https://github.com/vercel/next.js/releases
This is not officially supported in Next.js 16 as Turbopack is now default.
- ✅ TypeScript compilation: Working
- ✅ Linting: Working
- ✅ Configuration files: All correct
- ❌ Development server: 500 error due to Turbopack bug
- ❌ Production build: May fail with Turbopack
The application structure is correct. You can verify by checking:
-
Route Structure (Correct):
app/ ├── (admin)/ │ ├── layout.tsx │ └── dashboard/page.tsx └── (petugas)/ ├── layout.tsx └── dashboard/page.tsx -
Type Check (Passing):
npm run type-check # ✅ 0 errors -
Lint Check (Passing):
npm run lint # ✅ 0 errors
Downgrade to Next.js 15 until Next.js 16.0.2+ is released:
# Downgrade Next.js
npm install next@15
# Restart development server
npm run dev- Next.js 16 Release Notes: https://nextjs.org/blog/next-16
- Turbopack Documentation: https://nextjs.org/docs/app/api-reference/next-config-js/turbopack
- Next.js GitHub Issues: https://github.com/vercel/next.js/issues
2024-11-01
Note: This is a temporary issue with Next.js 16.0.1. The application code and configuration are correct. Once Next.js releases a fix, the application will work without any code changes.