Closed bsommardahl closed 8 years ago
Try updating Node to 6.x
For reference, looks like there is an open issue on the cucumber repo too: https://github.com/cucumber/cucumber-js/issues/610
According to the issue in the cucumberjs repo, this issue is present in v1.2.1 but not in previous issues. Could we downgrade cucumberjs to 1.2.0 until the issue is fixed?
I don't know how to actually do it but that sounds like a great workaround for now.
Here's a PR: https://github.com/xolvio/chimp/pull/442
@samhatoum I upgraded to Node v6.3.1 and got the same error. I'm pretty sure the problem is coming from cucumberjs v1.2.1 only.
Perhaps you could use a previous version of Chimp (v0.38.0) that used v1.0.0
@samhatoum That's a good idea. I will likely have my team do that.
In the mean time, I just tried the version from #442 locally and my tests ran without issue!
oh that's great to know, I'll look into downgrading
Which version of node did you use when that worked?
Working with chimp 0.38.0:
Fun fact, I was not able to install chimp@0.38.0 on Node 6.3.1 because of a module incompatibility.
Workaround achieved!
@samhatoum @bsommardahl Issue in cucumber fixed in 1.2.2 Just need to be updated ! hurayy
I am seeing the same issue with:
[chimp] Detected an unhandledRejection:
[chimp][hooks] TypeError: Cannot read property 'getFileName' of undefined
at isFrameInCucumber
after upgrading to chimp 0.39.3.
Upgrading cucumber to 1.2.2 does not seem to resolve this.
Fix coming shortly. Thanks for being patient
seeing the issue with chimp 0.40.4 edit as @jimmyhoneycutt experienced in #450, I'm getting weird errors on Ubuntu, meanwhile OSX is throwing the error itself. There is a fix for this issue suggested at https://gitter.im/cucumber/cucumber-js at Aug 11 03:57 by @philsrweb -
In the Cucumber JS code there is an assumption made in the file stack_trace_filter.js on line 9...
var fileName = frame.getFileName() || '';
... if you change it to a ternary as follows:var fileName = frame ? frame.getFileName() : '';
it works fine
When I run my specs and there is any unexpected error (element not found, tabid doesn't exist, etc), I get an unfriendly error from the depths of cucumber:
It doesn't matter what kind of error is happening to cause it, the reported error is always the same.
Used version
Console / Log Output
Join our Slack xolv.io/community #chimp channel, where you can find help and help others.