blitz-js / next-superjson-plugin

SuperJSON Plugin for Next.js Pages and Components
203 stars 13 forks source link

unable to resolve dependency tree #31

Closed cellulosa closed 2 years ago

cellulosa commented 2 years ago

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

cellulosa commented 2 years ago

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

orionmiz commented 2 years ago

You can't reach the canary with ^12.3.0

Use npm install next@canary instead.

cellulosa commented 2 years ago

Ahhh apologies I thought 12.3.0 was the canary version šŸ«£