Drizzle Studio & Kit : Now working with electronjs project

Will drizzle-kit studio work for drizzle-orm installed on electron ? I am getting this below error
pnpm exec drizzle-kit studio
drizzle-kit: v0.20.4 drizzle-orm: v0.29.0 No config path provided, using default path Reading config file 'D:\Dev\chaos-pos-electron\drizzle.config.ts' node:internal/modules/cjs/loader:1340 return process.dlopen(module, path.toNamespacedPath(filename)); ^ Error: The module '\?\D:\Dev\chaos-pos-electron\node_modules.pnpm\[email protected]\node_modules\better-sqlite3\build\Release\better_sqlite3.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 116. This version of Node.js requires NODE_MODULE_VERSION 108. Please try re-compiling or re-installing the module (for instance, using npm rebuild or npm install). at Module._extensions..node (node:internal/modules/cjs/loader:1340:18) at Module.load (node:internal/modules/cjs/loader:1119:32) at Module._load (node:internal/modules/cjs/loader:960:12) at Module.require (node:internal/modules/cjs/loader:1143:19) at require (node:internal/modules/cjs/helpers:119:18) at bindings (D:\Dev\chaos-pos-electron\node_modules.pnpm\[email protected]\node_modules\bindings\bindings.js:112:48) at new Database (D:\Dev\chaos-pos-electron\node_modules.pnpm\[email protected]\node_modules\better-sqlite3\lib\database.js:48:64) at drizzleForSQLite (D:\Dev\chaos-pos-electron\node_modules.pnpm\[email protected]\node_modules\drizzle-kit\bin.cjs:58354:24) at async Command.<anonymous> (D:\Dev\chaos-pos-electron\node_modules.pnpm\[email protected]\node_modules\drizzle-kit\bin.cjs:61611:13) { code: 'ERR_DLOPEN_FAILED' } Node.js v18.18.0
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server