sanity-io / sanity-template-gatsby-blog

A Sanity powered Gatsby blog for https://www.sanity.io/create
https://www.sanity.io/create?template=sanity-io/sanity-template-gatsby-blog
98 stars 34 forks source link

Error on npm run dev #148

Open edkeohane opened 3 years ago

edkeohane commented 3 years ago

Tried the set up for local development after getting the cloud environments working. https://www.sanity.io/create?template=sanity-io/sanity-template-gatsby-blog

  1. cloned to local drive.
  2. npm install in root folder - all fine.
  3. npm run dev in root folder - errors. two screenshots and log file attached.

2021-02-11T19_01_15_484Z-debug.log.txt

Screenshot 2021-02-11 at 19 06 16 Screenshot 2021-02-11 at 19 06 23
rawestmoreland commented 3 years ago

I lowered the react version back to 16.14.0 and the error went away. There's something about react 17 that is breaking this.

neysi commented 3 years ago

Upgrade Gatsby to 2.32.6 works for me.

bmajev commented 3 years ago

Had similar issues, resolved by running "npm update gatsby-cli" in web directory as noted here: https://github.com/gatsbyjs/gatsby/issues/19827