electron-builder: Uncaught Error: Cannot find module 'combined-stream' executing packaged app
- Version: 1.6.11
- Target: Debian 9
I am trying to develop an application with Electron, but when I run the compiled file it throws errors indicating that some modules are not found.
Uncaught Error: Cannot find module 'combined-stream'
at Module._resolveFilename (module.js:470:15)
at Function.Module._resolveFilename (/home/user/WebstormProjects/myApp/releases/myApp-linux-x64/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/user/WebstormProjects/myApp/releases/myApp-linux-x64/resources/app.asar/node_modules/form-data/lib/form_data.js:1:177)
at Object.<anonymous> (/home/user/WebstormProjects/myApp/releases/myApp-linux-x64/resources/app.asar/node_modules/form-data/lib/form_data.js:446:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
module.js:470 Uncaught Error: Cannot find module 'binary-search'
at Module._resolveFilename (module.js:470)
at Function.Module._resolveFilename (/home/user/WebstormProjects/myApp/releases/myApp-linux-x64/resour…:35)
at Function.Module._load (module.js:418)
at Module.require (module.js:498)
at require (internal/module.js:20)
at Object.<anonymous> (/home/user/WebstormProjects/myApp/releases/myApp-linux-x64/resour…:1)
at Object.<anonymous> (/home/user/WebstormProjects/myApp/releases/myApp-linux-x64/resour…:473)
at Module._compile (module.js:571)
at Object.Module._extensions..js (module.js:580)
at Module.load (module.js:488)
Running electron. the code works correctly. Does not throw any such error.
This is the package.json:
{
"name": "myApp",
"version": "1.0.0",
"description": "^",
"main": "main.js",
"license": "ISC",
"dependencies": {
"bitcoin": "^3.0.1",
"bitcoind-rpc": "^0.7.0",
"bitcoinjs-lib": "^3.1.0",
"drag-drop": "^2.13.2",
"electron": "^1.4.7",
"electron-dl": "^1.9.0",
"electron-rebuild": "^1.5.7",
"execsql": "^0.0.3",
"handbrake-js": "^2.1.0",
"imagemin": "^5.3.1",
"imagemin-jpegtran": "^5.0.2",
"imagemin-pngquant": "^5.0.1",
"jssocials": "^1.5.0",
"lzma": "^2.3.2",
"node-json-rpc": "^0.0.1",
"webtorrent": "^0.98.18"
},
"scripts": {
"start": "electron .",
"postinstall": "install-app-deps"
},
"devDependencies": {
"electron-builder": "^17.10.0",
"electron-packager": "^8.7.2"
}
}
Thanks in advance!!
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (8 by maintainers)
@ander7agar Both projects are opensource projects. In the userland. Not backed by Github and not affiliated with GitHub. Because electron-packager is very simple and limited tool (limited by defined/declared scope, I mean only this), no sense for electron-builder to join forces and merge electron-builder and electron-packager.
Download stats (330K vs 98K) and fact, that most of the electron boilerplates uses electron-builder, shows that users prefer to use electron-builder.
This project — electron-builder. Please use electron-builder instead of electron-packager.