ooi cat
ooi cat
Explore posts from servers
DTDrizzle Team
Created by ooi cat on 3/14/2024 in #help
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
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.
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.
4 replies
DTDrizzle Team
Created by ooi cat on 1/6/2024 in #help
Can I connect to a drizzle-kit studio running inside a vps when using http, and not https.
I specified custom host and ports with the --host and --port flags
14 replies