Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 5.0.0 doesn't work on Windows 10 #54

Closed
vidyuthd opened this issue Oct 14, 2020 · 3 comments
Closed

Version 5.0.0 doesn't work on Windows 10 #54

vidyuthd opened this issue Oct 14, 2020 · 3 comments

Comments

@vidyuthd
Copy link

Hi

i am using v5.0.0 version, and not able to get past the keying while db setup, fails at the step where i m trying to key the sqlite database without any errors in logs.

  await instance.run(`PRAGMA key = "x'${key}'";`);

If I don't do the above step, everything works fine. Is this linked to ISSUE 46 , because i had to rename napi folders v6 as v3 and make it run on windows

It works in Mac but not in Windows 10 (Parallels machine i have on my machine)

@FTAndy
Copy link

FTAndy commented Nov 11, 2020

Got the same issue, call

 await instance.run(`PRAGMA key = "x'${key}'";`);

electron will crash

@FTAndy
Copy link

FTAndy commented Nov 11, 2020

@vidyuthd I know how to fix it, try to run electron-rebuild, and change node_modules\@journeyapps\sqlcipher\lib\binding\napi-v6-win32-x64 to napi-v3-win32-x64.

@rkistner
Copy link
Member

I would recommend not renaming that folder - it is likely to cause a crash. You need to get the correct bindings installed.

I've added new instructions on workarounds here: https://github.com/journeyapps/node-sqlcipher/blob/3870217c1245dd4253e2bac2ea8d1d12a8c4a2b6/README.md#usage-with-electron-forge--electron-rebuild

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants