Dependency Conflict in Next.js Cloudflare Template during npm install
Hey everyone,
I'm using the Next.js Cloudflare template and trying to deploy using these settings:
Build command: npm install --force
Deploy command: npx wrangler deploy
Root directory: /
But Iām encountering this error during build:
Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
I already tried using --force, but the issue persists. Any ideas on how to cleanly resolve this or handle the dependency conflict the proper way?
Would appreciate any help š
4 Replies
@Cloudflare (Server Owner) @Community Champion
?pings
Please do not ping community members for non-moderation reasons. Doing so will not solve your issue faster and will make people less likely to want to help you.
mb