Skip to content
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: Cannot find module 'gatsby-cli/lib/reporter' #4131

Closed
vegmorse opened this issue Feb 19, 2018 · 5 comments
Closed

Error: Cannot find module 'gatsby-cli/lib/reporter' #4131

vegmorse opened this issue Feb 19, 2018 · 5 comments

Comments

@vegmorse
Copy link

This builds just fine locally both in gatsby develop and gatsby build.

But once it pulls from my git repo (and runs on Netlify), it throws this.

Gatsby 1.9.118

6:44:23 PM: error UNHANDLED EXCEPTION
6:44:23 PM:
6:44:23 PM: Error: Cannot find module 'gatsby-cli/lib/reporter'
6:44:23 PM:
6:44:23 PM: - v8-compile-cache.js:159 require
6:44:23 PM: [repo]/[v8-compile-cache]/v8-compile-cache.js:159:20
6:44:23 PM:
6:44:23 PM: - index.js:574 Object.
6:44:23 PM: [repo]/[gatsby-plugin-sharp]/index.js:574:14
6:44:23 PM:
6:44:23 PM: - v8-compile-cache.js:178 Module._compile
6:44:23 PM: [repo]/[v8-compile-cache]/v8-compile-cache.js:178:30
6:44:23 PM:
6:44:23 PM: - v8-compile-cache.js:159 require
6:44:23 PM: [repo]/[v8-compile-cache]/v8-compile-cache.js:159:20
6:44:23 PM:
6:44:23 PM: - extend-node-type.js:28 Object.
6:44:23 PM: [repo]/[gatsby-transformer-sharp]/extend-node-type.js:28:17
6:44:23 PM:
6:44:23 PM: - v8-compile-cache.js:178 Module._compile
6:44:23 PM: [repo]/[v8-compile-cache]/v8-compile-cache.js:178:30

Is there any way I can dig into the actual unhandled error?

@m-allanson
Copy link
Contributor

I think @pieh is working on a fix for this. As a temporary workaround adding gatsby-cli to your project (not globally) should fix it.

@jonavila
Copy link
Contributor

For me, it's failing on both develop and build. It's started happening after I updated some packages, but reverting back to the previous version doesn't seem to fix the issue.

@pieh
Copy link
Contributor

pieh commented Feb 19, 2018

Fix is ready for review #4122

@jonavila gatsby-remark-images depends on bugged gatsby-plugin-sharp so downgrading gatsby-plugin-sharp in your project won't fix this if you use gatsby-remark-images unfortunately. Try using workaround provided by @m-allanson for now.

@vegmorse
Copy link
Author

Many thanks!! the @m-allanson solution works for me. ;)

@pieh
Copy link
Contributor

pieh commented Feb 20, 2018

Fixed with #4122 . Update gatsby-plugin-sharp to 1.6.31 and gatsby-remark-images (if used) to 1.5.47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants