Tom Linford
07/18/2024, 5:26 PMnew Verifier(opts).verifyProvider()
[17:16:10.532] DEBUG (8): pact-core@15.1.0: binding path #0: : attempting to load native module from:
- /prebuilds/linux-x64
source: pact-js-core binding lookup
- You can override via PACT_PREBUILD_LOCATION
[17:16:10.590] DEBUG (8): pact-core@15.1.0: binding path #1: : attempting to load native module from:
- /var/task/prebuilds/linux-x64
source: pact-js-core binding lookup
- You can override via PACT_PREBUILD_LOCATION
[17:16:10.591] DEBUG (8): pact-core@15.1.0: Supported platforms are:
- darwin-arm64
- darwin-x64
- linux-arm64
- linux-x64
- win32-x64
[17:16:10.592] ERROR (8): pact-core@15.1.0: Failed to find native module for linux-x64: TypeError: Cannot read properties of undefined (reading 'pactffiInitWithLogLevel')
[17:16:10.592] DEBUG (8): pact-core@15.1.0: We looked for a supported build in this location /prebuilds/linux-x64
[17:16:10.592] DEBUG (8): pact-core@15.1.0: We looked for a supported build in this location /var/task/prebuilds/linux-x64
[17:16:10.593] DEBUG (8): pact-core@15.1.0: Tip: check there is a prebuild for linux-x64
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
ld
to check the dynamic library it’s looking for (the “native module” to see if it recognises the format and any dependencies are resolved. This is a share core library Pact JS is using. You can see the paths it’s tryingMatt (pactflow.io / pact-js / pact-go)
Tom Linford
07/19/2024, 9:23 AMTom Linford
07/19/2024, 9:27 AMMatt (pactflow.io / pact-js / pact-go)
Tom Linford
07/19/2024, 10:41 AMTom Linford
07/19/2024, 10:42 AMMatt (pactflow.io / pact-js / pact-go)
Yousaf Nabi (pactflow.io)
/prebuilds/linux-x64
instead of from the prebuilds folder which is located 2 folders before src/ffi/index.ts.
Try setting PACT_PREBUILD_LOCATION to whereever the prebuilds are (they are contained in the pact-core npm package)Tom Linford
07/19/2024, 11:21 AMMatt (pactflow.io / pact-js / pact-go)
Tom Linford
07/19/2024, 12:05 PMTom Linford
07/19/2024, 12:07 PMMatt (pactflow.io / pact-js / pact-go)
Tom Linford
07/19/2024, 12:14 PM