Uncaught Error: Cannot find module 'combined-stream' executing packaged app
See original GitHub issue- 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!!
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (8 by maintainers)
Top Results From Across the Web
How do I resolve "Cannot find module" error using Node.js?
Using npm install installs the module into the current directory only (in a subdirectory called node_modules ). Is app.js located under ...
Read more >while trying to resolve module `@react-native/normalize-color`
I just add babel core manually yarn add babel-core@^6.0.0 and did not had pbs to run the new app. Open side panel.
Read more >Fix Global Installs Not Working | "Cannot find module" error FIX
Getting " Cannot find module " after installing something globally (with -g)? Well, this video shows you how to fix global package /module ......
Read more >Solved: Cannot find module react : npm install - YouTube
start Windows PowerShell and use npm install.
Read more >lusiess01 - MagicMirror Forum
A complete log of this run can be found in: npm ERR! ... Error: Cannot find module 'escape-string-regexp' at Function.Module.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.