Error when running 'npm run graphql-deploy' in sanity-gatsby-portfolio-studio
Last updated: Jul 21, 2020
Hi there! I'm just starting out with the sanity-gatsby-portfolio. I made some edits to the studios schema and everything showed up fine in the studio on development, but when I run 'npm run graphql-deploy' to restart the graphql server I get the error :
lerna ERR! npm run graphql-deploy exited 1 in 'sanity-gatsby-portfolio-studio'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! firstname.lastname@example.org graphql-deploy: lerna run graphql-deploy
npm ERR! Exit status 1
npm ERR! Failed at the email@example.com graphql-deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Can anyone help me with this please? 🙂
Jul 21, 2020, 2:25 AM
you're trying to re deploy your changes to the Sanity schema? You need to run
sanity graphql deploy
on the studio folder
Jul 21, 2020, 2:29 AM
Jul 21, 2020, 2:30 AM
Yes, that's what I'm trying to do - Just tried that and got this error