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
195 stars 28 forks source link

dependency issue when running npm run dev #369

Open IcelandicIcecream opened 1 month ago

IcelandicIcecream commented 1 month ago

Running npm install and npm run dev gives me this error. seems to be failing at the npm run dev:studio stage

npx sanity@latest exec ./scripts/createInitialDocuments.ts --with-user-token

Need to install the following packages: sanity@3.62.0 Ok to proceed? (y) y npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: undefined@undefined npm ERR! Found: sanity@3.18.1 npm ERR! node_modules/sanity npm ERR! sanity@"3.62.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! sanity@"3.62.0" from the root project npm ERR! npm ERR! Conflicting peer dependency: styled-components@6.1.13 npm ERR! node_modules/styled-components npm ERR! peer styled-components@"^6.1" from sanity@3.62.0 npm ERR! node_modules/sanity npm ERR! sanity@"3.62.0" 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.