electron-builder icon indicating copy to clipboard operation
electron-builder copied to clipboard

A JavaScript error occurred in the main process

Open DESsmily opened this issue 10 months ago • 2 comments

  • Electron-Builder Version: 24.13.3
  • Node Version: 16.18.1
  • Electron Version: 29.1.5
  • Electron Type (current, beta, nightly):
  • Target: windows x64
  A JavaScript error occurred in the main process
  Uncaught Exception:
  Error: ENOTDIR, not a directory
         at createError (node:electron/js2c/nodeinit:2:1750)
         at t.mkdirSync (node:electron/js2c/node _init:2:12896)
         at  exports.initFileConf
  (D:\software\localServer\resources\app.asar\bin\initCOnf.js:10:12)
         at Object.<anonymous> 
  (D:\software\localServer\resources\app.asar\scripts\ipcHandler.js:27:1)
         at Module._compile (node:internal/modules/cjs/loader:1256:14)
         at Module._extensions.js (node:internal/modules/cjs/loader:1311:10)
         at Module.load (node:internal/modules/cjs/loader:1098:32)
         at Module. load (node:internal/modules/cjs/loader:945:12)
         at c. load   (node:electron/js2c/node_init:2:13672)
         at Module.require (node:internal/modules/cjs/loader:1122:19)

使用 electron . 可正常运行项目,但是通过electron-builder 打包后就出现了这个问题 我在main.js中引入了一个执行创建目录的函数 image

image

DESsmily avatar Mar 26 '24 06:03 DESsmily

我也遇到了这个问题,请问解决了么?

koking0 avatar Apr 17 '24 04:04 koking0

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Jun 17 '24 00:06 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity.

github-actions[bot] avatar Jul 22 '24 00:07 github-actions[bot]