frontvibe / fluid

Fluid is a Hydrogen theme that lets you easily build Shopify headless storefronts by organizing your content with Sanity.
https://fluid.frontvibe.com
MIT License
189 stars 28 forks source link

Issue when installing packages inside studio folder #317

Open shreyas707 opened 3 months ago

shreyas707 commented 3 months ago

Steps to reproduce the error:

  1. Run npm install in the root folder
  2. Run cd studio && npm install

The following error occurs:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: sanity-studio@1.0.0
npm ERR! Found: @sanity/icons@3.3.1
npm ERR! node_modules/@sanity/icons
npm ERR!   @sanity/icons@"^3.3.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @sanity/icons@"^2.3.1" from groqd-playground@0.0.20
npm ERR! node_modules/groqd-playground
npm ERR!   groqd-playground@"^0.0.20" 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.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /Users/shreyas/.npm/_logs/2024-08-16T04_56_22_979Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /Users/shreyas/.npm/_logs/2024-08-16T04_56_22_979Z-debug-0.log

I ran npm install --force and it fixed the issue temporarily and I'm able to run the project just fine. But don't know if this will cause any issues in the future during development.

xpek20 commented 2 months ago

Same issue

thomasKn commented 1 month ago

I removed groqd-playground from the studio; there was a peer dependency issue. It should be fixed now.