HelmetH
Convex Community3y ago
15 replies
Helmet

Could not locate the bindings file

I'm using HNSWLib-node for a vectorstore, but when I run
npx convex dev
, I get
400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
    error:
Uncaught Failed to analyze _deps/node/EWAOYEO5.js: Could not locate the bindings file. Tried:
 → /tmp/source/e9f38876-a6ef-41e1-b3c9-c5d51185bdcc/build/addon.node
 → /tmp/source/e9f38876-a6ef-41e1-b3c9-c5d51185bdcc/build/Debug/addon.node
 → /tmp/source/e9f38876-a6ef-41e1-b3c9-c5d51185bdcc/build/Release/addon.node
 → /tmp/source/e9f38876-a6ef-41e1-b3c9-c5d51185bdcc/out/Debug/addon.node
 → /tmp/source/e9f38876-a6ef-41e1-b3c9-c5d51185bdcc/Debug/addon.node
 → /tmp/source/e9f38876-a6ef-41e1-b3c9-c5d51185bdcc/out/Release/addon.node

    at bindings (../../../node_modules/bindings/bindings.js:126:4)
    at node_modules/hnswlib-node/lib/index.js (../../../node_modules/hnswlib-node/lib/index.js:19:17)
    at __require2 (convex:/user/_deps/node/R44RVPLZ.js:16:50)
    at <anonymous> (../../../node_modules/hnswlib-node/lib/index.js:19:17)


I am not sure the exact cause of this error as I have run the exact same file locally with no issues. I am following Langchain's usage instructions, and as it runs locally, I can only assume this issue is related to Convex not having some sort of support for bindings and node addons. I'd appreciate some help resolving this issue.
Was this page helpful?