Commit 7a7dbaf
authored
fix:
```
PS C:\Users\circleci\project> .\node_modules\electron-winstaller\vendor\signtool.exe --version
(node:4288) Warning: Failed to load the ES module: sea.js. Make sure to set "type": "module" in the nearest package.json file or use the .mjs extension.
(Use `signtool --trace-warnings ...` to show where the warning was created)
sea.js:2
import { spawnSync } from 'node:child_process';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at embedderRunCjs (node:internal/main/embedding:60:7)
Node.js v22.17.1
```
> The single executable application feature currently only supports
running a single embedded script using the
[CommonJS](https://github.com/nodejs/node/blob/main/doc/api/modules.md#modules-commonjs-modules)
module system.SEA_MAIN only supports CommonJS (#64)1 parent 34298ad commit 7a7dbaf
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
0 commit comments