App threw an error during load
Error: Cannot find module 'bcrypto.node'
at moduleError (webpack:///./node_modules/loady/lib/loady.js?:154:15)
at resolve (webpack:///./node_modules/loady/lib/loady.js?:89:9)
at load (webpack:///./node_modules/loady/lib/loady.js?:99:16)
at eval (webpack:///./node_modules/bcrypto/lib/native/binding.js?:11:86)
at Object../node_modules/bcrypto/lib/native/binding.js (/home/Desktop/hello-world/dist_electron/index.js:1874:1)
at __webpack_require__ (/home/Desktop/hello-world/dist_electron/index.js:20:30)
at eval (webpack:///./node_modules/bcrypto/lib/native/hkdf.js?:10:17)
at Object../node_modules/bcrypto/lib/native/hkdf.js (/home/Desktop/hello-world/dist_electron/index.js:1898:1)
at __webpack_require__ (/home/Desktop/hello-world/dist_electron/index.js:20:30)
at eval (webpack:///./node_modules/bcrypto/lib/hkdf.js?:12:20)
I can confirm that bcrypto is there. Also, bcrypto is a dep of another package so its already installed and being build.
I tried everything from scratch without vuejs and this plugin, and it worked, so its something with webpack or the way bundling is done.
I also tried this, but didnt work:
electronBuilder: {
externals: ['bcrypto']
}
Expected behavior
It should run and connect to a remote peer
Environment (please complete the following information):
Ubuntu 16.04
Describe the bug Imported the following in background.js
and when i run electron it outputs the following:
I can confirm that bcrypto is there. Also, bcrypto is a dep of another package so its already installed and being build.
I tried everything from scratch without vuejs and this plugin, and it worked, so its something with webpack or the way bundling is done.
I also tried this, but didnt work:
Expected behavior It should run and connect to a remote peer
Environment (please complete the following information): Ubuntu 16.04