Peer Dependency Conflict: @remix-run/dev and [email protected]

For Workers & Pages, what is the name of the domain?

NA

What is the error message?

While resolving: @remix-run/[email protected] Found: [email protected] node_modules/wrangler dev wrangler@“^4.0.0” from the root project Could not resolve dependency: peerOptional wrangler@“^3.28.2” from @remix-run/[email protected] node_modules/@remix-run/dev dev @remix-run/dev@“^2.15.3” from the root project Conflicting peer dependency: [email protected] node_modules/wrangler peerOptional wrangler@“^3.28.2” from @remix-run/[email protected] node_modules/@remix-run/dev dev @remix-run/dev@“^2.15.3” from the root project Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.

What is the issue or error you’re encountering

I am encountering a peer dependency conflict between @remix-run/dev and wrangler that I believe originates from the @remix-run/dev package. Specifically, @remix-run/[email protected] declares a peer dependency on wrangler@“^3.28.2”. However, I have [email protected] installed

What are the steps to reproduce the issue?

Set up a new project using the command npm create cloudflare@latest – my-remix-app --framework=remix.

3 Likes

Yep, I’m seeing the issue too.

I resolved this by changing my wrangler version to "wrangler": "^3.114.3". It means I get a big warning that my wrangler version is out of date but it’ll do for now.