pingdotgg / zact

Nothing to see here
https://zact-example.vercel.app
MIT License
980 stars 16 forks source link

Error installing when using next@canary #23

Open logikaljay opened 1 year ago

logikaljay commented 1 year ago

Although this is not a huge deal, because npm i --force.

I am using next@13.4.2-canary.2 as it has the fix for server actions that use next/headers and next/cookies. The previous workaround was to import them in a server component and send them to the client component as props.

npm ERR! While resolving: zact@0.0.2
--
npm ERR! Found: next@13.4.2-canary.2
npm ERR! node_modules/next
npm ERR!   next@"^13.4.2-canary.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^13.2.5-canary.x" from zact@0.0.2
npm ERR! node_modules/zact
npm ERR!   zact@"^0.0.2" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: next@13.4.1
npm ERR! node_modules/next
npm ERR!   peer next@"^13.2.5-canary.x" from zact@0.0.2
npm ERR!   node_modules/zact
npm ERR!     zact@"^0.0.2" from the root project

I am not entirely sure why this is happening as the semver required in the package.json for zact is ^13.3.0 which validates the canary version I am installing (according to random semver checker I found on google): https://jubianchi.github.io/semver-check/#/^13.3.0/13.4.2-canary.2

Maybe someone with better knowledge of semver can explain?