Issue trying to commit using visual studio code in-build source control tool

Hi @iraklitchedia – VS code use the electron runtime, so if husky is not doing anything in particular to make sure it uses the node runtime then it makes sense the SDK will not be able to find its binary. I think there are 2 work-arounds:

  • You should be able to change the package.json test script to use the package runner (npx), so something like "test": "npx ts-mocha" or "test": "npx vitest run"
  • You can point the environment variable CN_PREBUILD_PATH_OVERRIDE to the path of your prebuild (should be in node_modules/@couchbase/)

I hope this helps.

1 Like