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 šŸ™
5 Replies
ResearchPlays
ResearchPlaysOP•2w ago
@Cloudflare (Server Owner) @Community Champion
Isaac McFadyen
Isaac McFadyen•2w ago
?pings
SuperHelpflare
SuperHelpflare•2w ago
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.
ResearchPlays
ResearchPlaysOP•2w ago
mb
mikey$money
mikey$money•2w ago
if you are still having this issue, i was able to solve it, without having to adjust any of my package versions, by moving to pnpm. * install pnpm * delete your node modules and reinstall via pnpm i * trigger another deployment in cloudflare this got me back to normal functioning

Did you find this page helpful?