web3templates / stablo

Stablo is a minimal blog website template built with Next.js, TailwindCSS & Sanity CMS

Home Page:https://stablo.web3templates.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm resolution error

daltn opened this issue · comments

hey,

lovely blog template. when installing i'm getting an npm resolution error on npm install I was able to resolve by using npm install --legacy-peer-deps so I wanted to put it on y'alls radar that this happening with the template.

npm log output:

# npm resolution error report

While resolving: undefined@undefined
Found: react@18.2.0
node_modules/react
  react@"^18.2.0" from the root project
  peer react@"^17.0.2 || ^18.0.0-0" from next@12.1.6
  node_modules/next
    next@"^12.1.6" from the root project
    peer next@"^11.0.0 || ^12.0.0" from next-sanity-image@3.2.1
    node_modules/next-sanity-image
      next-sanity-image@"^3.2.1" from the root project
  peer react@"^18.2.0" from react-dom@18.2.0
  node_modules/react-dom
    react-dom@"^18.2.0" from the root project
    peer react-dom@"^17.0.2 || ^18.0.0-0" from next@12.1.6
    node_modules/next
      next@"^12.1.6" from the root project
      peer next@"^11.0.0 || ^12.0.0" from next-sanity-image@3.2.1
      node_modules/next-sanity-image
        next-sanity-image@"^3.2.1" from the root project

Could not resolve dependency:
peer react@"^17.0.2" from next-sanity-image@3.2.1
node_modules/next-sanity-image
  next-sanity-image@"^3.2.1" 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.

It should be fixed in v2 release.