Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
error thrown while running `gatsby develop` #18
This may be a problem with my setup, I am new to Gatsby (and also Nodejs in general), it's very possible I've made a basic mistake. However, I'd like to tinker with this site's code, it's an interesting project, and a good chance to learn about Gatsby.
Anyway, enough preamble, here's the error:
When I run
I've googled the error, it seems like it's possible some dependency is trying to do something not quite right with an object in the DOM? I don't know. The one thing I do know from my limited experience with Node is that sometimes the version of Node you're running matters, so I've rolled back from the standard Ubuntu package version of Node (bleeding edge 10.something) to the current LTS 8 version (8.11.2). I'll now try the current (not-LTS) 7 version. I am deleting the contents of node_modules each time I change versions, and re-running yarn to reinstall dependencies. And step backwards a few more versions just because I have a hammer. :-)
I know this may not end up being a code problem, but I suspect it might be a problem someone else runs into, so I've logged it here. Feel free to close it, but if you can help me figure this out I'd appreciate it, thanks!
I'm still not sure what's going on, however, I decided to confirm whether my Gatsby setup was correct, and tried a few of the starter projects. They all started up fine. On a whim, I decided to try creating a new gdpr-checklist site using the existing one as a starter:
I am also getting errors at this point.
/opt/gdpr-checklist# gatsby develop
Error: Cannot find module '../build/Release/sharp.node'
But I am not sure why it can't find the module.