blitz-js / next-superjson-plugin

SuperJSON Plugin for Next.js Pages and Components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unable to resolve dependency tree

cellulosa opened this issue · comments

Describe the bug

Yo updated my package.json with "next-superjson-plugin": "^0.4.2", (and "next": "^12.3.0",). This is what I get:

npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: app@1.0.0
npm ERR! Found: next@12.3.0
npm ERR! node_modules/next
npm ERR!   next@"^12.3.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer next@">12.3.0" from next-superjson-plugin@0.4.2
npm ERR! node_modules/next-superjson-plugin
npm ERR!   next-superjson-plugin@"^0.4.2" from the root project
npm ERR! 
npm ERR! 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.

--force does not help. Am I missing something?

Expected behavior

to install next-superjson-plugin 0.4.2 with the canary version of next (12.3.0).

Reproduction link

No response

Version

0.4.2

Config

No response

Additional context

No response

I could install using --legacy-peer-deps.

You can't reach the canary with ^12.3.0

Use npm install next@canary instead.

Ahhh apologies I thought 12.3.0 was the canary version 🫣