electron-deeplink
electron-deeplink copied to clipboard
Error: Could not locate the bindings file
Node: 14.19 Environment: Mac M1 Chip (Monterey - 12.4) Electron: 12.2.3
I've just installed the package, and configured the DeepLink. But when I start the app it's looking for the node bindings at incorrect path so app crashes.
I've checked correct binary path is:
/Users/ahmad-goraya/Documents/projects/repeato-studio/node_modules/electron-deeplink/build/releases/electron-deeplink.node
Expected: Package should search for bindings at correct location.
Workaround:
For now I manually copied the build directory from node_modules/electron-deeplink and put at root path then it starts working fine.
See attached screenshot for reference:

Thanks for the report, I'll take a look asap.
On Fri, Jun 24, 2022 at 3:44 AM ahmedmukhtar1133 @.***> wrote:
Node: 14.19 Environment: Mac M1 Chip (Monterey - 12.4) Electron: 12.2.3
I've just installed the package, and configured the DeepLink. But when I start the app it's looking for the node bindings at incorrect path so app crashes.
I've checked correct binary path is:
/Users/ahmad-goraya/Documents/projects/repeato-studio/node_modules/electron-deeplink/build/releases/electron-deeplink.node
Expected: Package should search for bindings at correct location.
Workaround: For now I manually copied the build directory from node_modules/electron-deeplink and put at root path then it starts working fine.
See attached screenshot for reference: [image: image] https://user-images.githubusercontent.com/15345707/175518821-0aa5fcb3-90ff-43a8-beaf-5834b22fede7.png
— Reply to this email directly, view it on GitHub https://github.com/glawson/electron-deeplink/issues/43, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJNOR64QEWU6OYYMELVCRTVQWGPFANCNFSM5ZXOG25Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>
The issue is related to the node-gyp version used in the package, and I need to up the node version requirements to LTS. I'm actively working on this as a v2.
I got the same error and solved it by excluding electron-deeplink from the bundle.
I'm using webpack, so I've added it to externals section of config.
When it is bundled require('bindings')('native-file.node') cannot determine coorect path because searching it near package dist folder (so it is not supported to be bundled).
https://github.com/glawson/electron-deeplink#-deprecation-notice-