[URGENT] Build fails on NodeHub due to Next.js/Clerk peer dependency conflict #1
Labels
No labels
blocked:needs-decision
bug
chore
in-progress
security/high
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AuWoMe/planish#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue
The application fails to build on NodeHub (https://nodehub.tail018ac4.ts.net) with the following error:
Root Cause
14.2.357.0.12Solutions
Option 1: Upgrade Next.js (Recommended)
Then push to trigger a new deployment.
Option 2: Downgrade Clerk to v4 (If staying on Next.js 14)
Note: Clerk v4 is deprecated and will lose support.
Option 3: Quick Fix in Dockerfile (Not Recommended)
Modify the Dockerfile to use
--legacy-peer-depsflag, but this masks the real problem.Quick Action
Run locally to verify:
Then deploy from working branch. Ideally fix the dependencies properly.
Fixed locally.
Resolution: Downgraded
@clerk/nextjsfrom^7.0.12to^6.39.3(v6 is compatible with Next.js 14).npm installnow completes successfully andnext lintpasses. Ready to push.