DEV Community

Discussion on: Gatsby Tutorial: A Step-by-Step Guide to Building a Gatsby Site from Scratch

Collapse
 
phuocth58733970 profile image
Phuoc Thanh

Hi Ibas, I think I got stuck after I stop my terminal and install gatsby-plugin-sass node-sass plugin. Then I restarted my development with

gatsby develop

so I got an error

Error: Cannot find module 'react'

and a bunch of require stack. Thank you !

Collapse
 
ibaslogic profile image
Ibas • Edited

It looks like the "react" module is missing. Please remove your node_modules directory and the package-lock.json file and reinstall them by running npm install. Then run gatsby develop.

Let me know if it works for you.