<#1086 Issue getting @pact-foundation/pact module ...
# pact-js-development
g
#1086 Issue getting @pact-foundation/pact module to load Issue created by AlisonYoon Software versions OS: Mac OS Ventura 13.3.1 Node version: 14.21.1 @pact-foundation/pact: ^11.0.2 @pact-foundation/pact-core: ^13.13.4 Issue Checklist Please confirm the following: • [ x] I have upgraded to the latest • [ ]x I have the read the FAQs in the Readme • [x ] I have triple checked, that there are no unhandled promises in my code and have read the section on intermittent test failures ☐ I have set my log level to debug and attached a log file showing the complete request/response cycle ☐ For bonus points and virtual high fives, I have created a reproduceable git repository (see below) to illustrate the problem Expected behaviour fill in here Actual behaviour Pact testing failure with below error message.
Copy code
dlopen(/Users/alison.yoon/Developer/kraken-core/src/octoenergy/interfaces/node_modules/@pact-foundation/pact-core/build/Release/pact.node, 0x0001): Library not loaded: @rpath/libpact_ffi.dylib
      Referenced from: <409E86F7-030E-31C9-8506-0E6A80B0F755> /Users/alison.yoon/Developer/kraken-core/src/octoenergy/interfaces/node_modules/@pact-foundation/pact-core/build/Release/pact.node
      Reason: tried: '/Users/alison.yoon/Developer/kraken-core/src/octoenergy/interfaces/node_modules/@pact-foundation/pact-core/build/Release/libpact_ffi.dylib' (no such file), '/Users/alison.yoon/Developer/kraken-core/src/octoenergy/interfaces/node_modules/@pact-foundation/pact-core/build/Release/libpact_ffi.dylib' (no such file), '/usr/local/lib/libpact_ffi.dylib' (no such file), '/usr/lib/libpact_ffi.dylib' (no such file, not in dyld cache)

      at Runtime._loadModule (node_modules/jest-runtime/build/index.js:1180:29)
      at bindings (../../node_modules/bindings/bindings.js:112:48)
      at Object.<anonymous> (../../node_modules/@pact-foundation/pact-core/src/ffi/index.ts:6:21)
Steps to reproduce In Mac OS Ventural 13.3.1, in a project, install pact testing package, write some tests and run it. pact-foundation/pact-js