Automattic / Automattic/node-canvas
Electron multi platform build for Windows, exe crash "xxx.tmp.node is not a valid Win32 application"
- Dominant language
- JavaScript
- Stars
- 10.7k
- Forks
- 1.2k
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 1
Description
I builded electron x64 exe with node-canvas on my mac and linux, both of them installed on my win10 crashed with
```
A JavaScript error occurred in the main process
Uncaught Exception:
Error:
\\?\C:\Users\xxxxx\AppData\L...\e4cal f8d -692b-46e5-bOce-ad8a78065343.tmp.node is not a valid Win32 application.
\\?\C:\Users\xxxxx9\AppData\L...\e4cal f8d -692b-46e5-bOce-ad8a78065343.tmp.node
at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1846)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1138:18)
at Object.func [as rode) (electron/js2c/asar_bundle.js:5:2073)
at Module.load (internal/modules/cjs/loader.js:935:32)
at Module. load (internal/modules/cjs/loader.js:776:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
at Module.require (internal/modules/cjs/loader.js:959:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.
(C:\Users\xxxxx\AppData\Local\Prog rams\temten\resou rces\app.asar\node_m...:18) at Module._compile (internal/modules/cjs/loader.js:1078:30)
```
Need help, pls.
Ubuntu 20.04.2 LTS ([Docker Image electronuserland/builder:wine](https://www.electron.build/multi-platform-build#to-build-app-for-windows-on-linux))
nodejs: v14.17.0
node-canvas: v2.8.0
MacOS 10.14.6
nodejs: v14.16.0
node-canvas: v2.8.0
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.