witcher112 / electron-app-universal-protocol-client

Unified cross-platform protocol handler for Electron apps, supporting development environments.
MIT License
12 stars 4 forks source link

No native build was found for platform darwin #3

Open eden-lane opened 8 months ago

eden-lane commented 8 months ago

I'm getting this error when I require the module:

Error: No native build was found for 
platform=darwin 
arch=arm64 
runtime=electron 
abi=119 
uv=1 
armv=8 
libc=glibc 
node=18.18.2 
electron=28.1.0 
webpack=true

Is there any solution to this?

I've tried to add lib to extrernals of webpack, but it didn't help:

 externals: {
    keytar: "require('keytar')",
    electronAppUniversalProtocolClient: "require('electron-app-universal-protocol-client').default",
  },
elliotmoose commented 4 months ago

+1, am facing this at the moment

jason-dark commented 3 months ago

+1 same issue here

juxnpxblo commented 1 month ago

I was able to solve it on my project by adding externals: ["electron-app-universal-protocol-client"] to my main script webpack config

the error was No native build was found for platform=linux arch=x64 runtime=electron abi=114 uv=1 libc=glibc node=18.14.0 electron=24.1.1 webpack=true