Problem with electron and drizzle-kit push

Hey. I am using electron with better-sqlite3 and drizzle.

For better-sqlite3 to be able to work with electron, it has to be built for it. I build it and I can use drizzle to generate schemas and write statements, for example (create user) and the app works fine.

However, when I try to run
drizzle-kit push:sqlite

I get:
better_sqlite3.node was compiled against a different Node.js version using NODE_MODULE_VERSION 119. This version of Node.js requires NODE_MODULE_VERSION 120. Please try re-compiling or re-installing the module.

It seems that somehow my setup is mismatching my node versions or something.

If I manually go to my better-sqlite3 node module folder and build it, I can run drizzle-kit push:sqlite with no problems. However my app won't launch anymore after that and gives me the exact same node_module_version mismatch problem. It just seems like some weird compile/package/version mismatching problem and I have no clue at this point.
Was this page helpful?