416rehman / splite

SPLITE - Discord Bot with Slash Command Handler and Endpoint Handler, supporting AI, Music, Moderation, and more!
GNU General Public License v3.0
104 stars 29 forks source link

throw new TypeError('Cannot open database because the directory does not exist'); #40

Open SlyRaccoon42 opened 1 year ago

SlyRaccoon42 commented 1 year ago

TypeError: Cannot open database because the directory does not exist at new Database (C:\Users\rando\Desktop\just bot\node_modules\better-sqlite3\lib\database.js:59:9) at Object. (C:\Users\rando\Desktop\just bot\src\utils\db.js:5:12) at Module._compile (node:internal/modules/cjs/loader:1126:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10) at Module.load (node:internal/modules/cjs/loader:1004:32) at Function.Module._load (node:internal/modules/cjs/loader:839:12) at Module.require (node:internal/modules/cjs/loader:1028:19) at require (node:internal/modules/cjs/helpers:102:18) at new Client (C:\Users\rando\Desktop\just bot\src\Client.js:21:19) at Object. (C:\Users\rando\Desktop\just bot\app.js:8:16) PS C:\Users\rando\Desktop\just bot> why it give me this error?