Closed DomEscobar closed 5 months ago
You need to correctly setup your build tool.
since vite isn't useful for electron main part, I use underlying esbuild and here is config for inspiration https://github.com/SnosMe/awakened-poe-trade/blob/b446c617cc1d4970067c209cf172a5dd93fcf72a/main/build/script.mjs#L33
Hey im glad this lib exists -
Im on a windows machine and trying to get it running on my electron app. However i get the error :
`Uncaught Error: No native build was found for platform=win32 arch=x64 runtime=electron abi=113 uv=1 libc=glibc node=18.12.1 electron=23.3.10 loaded from: C:\repos\electron-vite-react-express-llm\node_modules\electron\dist\resources\electron.asar
I tried to add a similar setup like in iohook to my package.json, but it didnt helped:
"uiohook-napi": { "targets": [ "electron-76" ], "platforms": [ "win32", "darwin", "linux" ], "arches": [ "x64", "ia32" ] },
What am i missing here :/