-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
Cannot find module './build/Release/DTraceProviderBindings' from 'dtrace-provider.js' #63
Comments
Having the same issue here. |
Cool, I have been able to repro this. Marking as bug. For me the tests still work, this is more of an annoying output. Seemingly this issue is quite frequent. I'm guessing it's related to |
Upon investigation, it seems that bunyan has an optional dependency on As you can see, when installing pact it comes along for the ride:
I've tried all of the suggestions and nothing worked, manually running the compilation didn't fail aside from a few spurious warnings and created what looked like bindings, just not in the intended location. This workaround worked for me, although it's an obviously crappy solution:
Curious though, I'm not sure why specifically in this configuration it warns. |
I figured out that to work around this issue we just need to create a separate script, one that ignores Jest all together. What I did was moving my Pact tests to
Then, if I run |
Thanks @felipecao, great find - I'll update the docs with this (somewhere). |
@mefellows, please re-open this, the error is still there. Also, the bunyan issue is open since January 2015, so I guess the best solution would be to get rid of the dependency, if possible (haven't checked the code yet). Steps to reproduce:
=> the reported "DTraceProviderBindings" error appears. |
The issue is in upstream |
cc: @mboudreau |
Released |
Thank you for the fast merge, everything looks good now! ⭐️ |
👍 |
Hello everyone!
I wanted to create a really simple React app and add a Pact test on top of it, but I'm having some trouble making Pact play along well with Jest.
So i started by using https://github.com/facebookincubator/create-react-app to create that React app. It generates a small React app containing basically two classes under
/src
:App.js
&App.test.js
. If I runnpm test
, everything runs smooth.Then I ran
npm install --save-dev pact
to install Pact.Next thing I did was editing
App.test.js
to just import Pact, nothing else, this is how the test looks like:Now if I run
npm test
again, the test crashes with this error message:Am I doing anything wrong here?
I tried
npm install --save dtrace-provider
but that didn't change anything. I've also tried doing what's documented at https://github.com/pact-foundation/pact-js#note-on-jest, and no luck.Thanks a lot for the excelent work with the whole Pact family!
The text was updated successfully, but these errors were encountered: