deasync icon indicating copy to clipboard operation
deasync copied to clipboard

Using deasync under Electron 0.36.7 on Windows

Open kitsonk opened this issue 9 years ago • 3 comments

I am trying to utilise deasync under Electron. The package works perfectly fine under OSX and works fine under NodeJS on Windows, but when attempting to load the module under Electron on Windows, I get the following:

App threw an error when running { [Error: Could not locate the bindings file. Tried:
 → {REMOVED}app\node_modules\deasync\build\deasync.node
 → {REMOVED}app\node_modules\deasync\build\Debug\deasync.node
 → {REMOVED}app\node_modules\deasync\build\Release\deasync.node
 → {REMOVED}app\node_modules\deasync\out\Debug\deasync.node
 → {REMOVED}app\node_modules\deasync\Debug\deasync.node
 → {REMOVED}app\node_modules\deasync\out\Release\deasync.node
 → {REMOVED}app\node_modules\deasync\Release\deasync.node
 → {REMOVED}app\node_modules\deasync\build\default\deasync.node
 → {REMOVED}app\node_modules\deasync\compiled\5.1.1\win32\x64\deasync.node]
  tries:
   [ '{REMOVED}app\\node_modules\\deasync\\build\\deasync.node',
     '{REMOVED}app\\node_modules\\deasync\\build\\Debug\\deasync.node',
     '{REMOVED}app\\node_modules\\deasync\\build\\Release\\deasync.node',
     '{REMOVED}app\\node_modules\\deasync\\out\\Debug\\deasync.node',
     '{REMOVED}app\\node_modules\\deasync\\Debug\\deasync.node',
     '{REMOVED}app\\node_modules\\deasync\\out\\Release\\deasync.node',
     '{REMOVED}app\\node_modules\\deasync\\Release\\deasync.node',
     '{REMOVED}app\\node_modules\\deasync\\build\\default\\deasync.node',
     '{REMOVED}app\\node_modules\\deasync\\compiled\\5.1.1\\win32\\x64\\deasync.node' ] }

And below is the error being logged to a dialog:

windows_10

kitsonk avatar Feb 17 '16 19:02 kitsonk

I added some console logging on the errors the led up to the above and discovered the following:

[Error: A dynamic link library (DLL) initialization routine failed.
\\?\{REMOVED}app\node_modules\deasync\bin\win32-x64-node-5\deasync.node]

So while on OSX under Electron 0.36.7 it is fine, there is something wrong under Windows.

kitsonk avatar Feb 18 '16 09:02 kitsonk

Probably vc++ 2010 or 2013 redistritables.

Sent via phone

On Feb 18, 2016, at 1:39 AM, Kitson Kelly [email protected] wrote:

I added some console logging on the errors the led up to the above and discovered the following:

[Error: A dynamic link library (DLL) initialization routine failed. ?{REMOVED}app\node_modules\deasync\bin\win32-x64-node-5\deasync.node] So while on OSX under Electron 0.36.7 it is fine, there is something wrong under Windows.

— Reply to this email directly or view it on GitHub.

abbr avatar Feb 18 '16 16:02 abbr

I can't get this package working (it's a dependency of a dependency) under [email protected] on OSX Yosemite and node v6.2.0. I get the exact same error, even after running electron-rebuild.

eranimo avatar Aug 07 '16 01:08 eranimo