启动 Electron ,然后把程序拖进去,就提示错误
A JavaScript error occurred in the main process
具体的错误信息如下:
Uncaught Exception:
Error: Cannot find module 'app'
at Module._resolveFilename (module.js:438:15)
at Function.Module._resolveFilename (/usr/local/lib/node_modules/electron-prebuilt/dist/
Electron.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (module.js:386:25)
at Module.require (module.js:466:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/Ziya/Downloads/seals.asar/browser.js:3:13)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)