m4heshd / better-sqlite3-multiple-ciphers

better-sqlite3 with multiple-cipher encryption support 🔒
MIT License
137 stars 27 forks source link

is not a valid Win32 application #65

Closed angel-neoris closed 10 months ago

angel-neoris commented 10 months ago

Hi!

I was working all day with this without issues... but now, when I try to launch my app I get the next error:

electron\\node_modules\\better-sqlite3-multiple-ciphers\\build\\Release\\better_sqlite3.node is not a valid Win32 application.

What is happening now?

Thanks!

m4heshd commented 10 months ago

Can you link a reproducible repo so I can take a look at what might be causing the issue?

Also, make sure to mention your Windows version and the Node version you're using locally.

angel-neoris commented 10 months ago

Repo its private for my company...

Windows: OS Name: Microsoft Windows 10 Enterprise OS Version: 10.0.19045 N/A Build 19045

Node v16.15.0

m4heshd commented 10 months ago

Repo its private for my company...

Unfortunately, there's no other way for me to debug your specific scenario without a way to reproduce it. I don't want you to make your private code public. Instead, you have to recreate the issue on a new repo in a minimal way. Retrace your steps up to the point where you ran into this issue, clean that code up to the minimal requirements, and link that repo here.

The goal of minimal reproduction is to create a test that fails with the specific error when you run it, without needing additional tasks. Then the origin of the issue can be identified once whoever's debugging that code can make that test pass.

angel-neoris commented 10 months ago

I deleted node_modules from Angular project and Electron folder and run npm install again in both, and it seems that everything is going well for now.

m4heshd commented 10 months ago

Glad to know the issue was solved. Closing this issue. Feel free to reopen if the issue resurfaces.