-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
danger pr throwing "Cannot find module 'package.json'" #261
Comments
I am also having the same issue during my CI build on my application after greenkeeper updated danger to the latest version (0.19) +1 |
check jestjs/jest#3723, this seems |
Thanks @kwonoj :D |
This really bummed me out just now trying to set up danger on our project finally. Until the new version of Jest is released it seems that a simple workaround is to ensure you have a |
We ended up working around this in Artsy by moving to Peril - https://github.com/danger/peril |
I've been running into this as well. Looks like this is fixed in jest#master, and the fix is available in Jest 20.1.0-alpha.3. I'm guessing we won't want to move Danger to an alpha release just yet, so we'll need to wait for the final Jest 20.1.0 release to become available. |
Also includes a bogus .babelrc to solve danger/danger-js#261 until it is released.
I'm running in to this error when I'm just running danger in TravisCI – should I just wait for a release that includes Jest 20.1? |
#261 (comment) is well working workaround. example : https://github.com/ReactiveX/rxjs/blob/d2a32f9a18ebbf65bea798f558364571c91a9d79/.travis.yml#L32 |
@kwonoj I'll try that, thanks! |
I was going to suggest adding solutions to the troubleshooting guide, but I believe this won't be a problem with danger 2.0, since we're moving away from Jest as the Dangerfile evaluator. Is this your understanding as well, @orta? |
(@macklinu I should note that I no longer encounter any problems since upgrading to the danger@2 prereleases.) |
Yes, this shouldn't be a problem then 👍 |
OK, I'm going to call this as sorted since Danger doesn't use jest under the hood anymore. 👍 |
👋 I'm currently trying to add danger to my project. I've set up my dangerfile.js as so:
and if I run
danger pr
I get back an error:I have danger installed both globally and to my project repo. My local version of Node is v7.10.0. Any thoughts?
The text was updated successfully, but these errors were encountered: