-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error thrown while running gatsby develop
#18
Comments
Update: well, version 6 won't work, and 7 had no impact on the mysterious "there was an error" message when running |
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. |
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
gatsby develop
, the following error is thrown:error There was an error compiling the html.js component for the development server.
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!
The text was updated successfully, but these errors were encountered: