This may not be the most descriptive, but unfortunately I cannot share more code right now, but happy to do it privately. Would appreciate any pointers as to why this issue is arising.
I had a similar error and had to add onnxruntime-node to my dependencies in my package, which my electron building process picked up and installed (im using vite not webpack)
I'm getting the following error while building my electron app with @xenova/transformers
Error: Cannot find module '../bin/napi-v3/darwin/arm64/onnxruntime_binding.node'
start script
"start": "yarn build:webpack-dev && concurrently \"yarn dev-server\" \"yarn electron\""
This may not be the most descriptive, but unfortunately I cannot share more code right now, but happy to do it privately. Would appreciate any pointers as to why this issue is arising.
PS - the module does exist, I checked.