C:\Users\COSMICBUG\Desktop\Whatsapp BOT\node_modules\mongoose\lib\drivers\node-mongodb-native\connection.js:206
throw new MongooseError('The uri parameter to openUri() must be a ' +
^
MongooseError: The uri parameter to openUri() must be a string, got "undefined". Make sure the first parameter to mongoose.connect() or mongoose.createConnection() is a string.
at NativeConnection.createClient (C:\Users\COSMICBUG\Desktop\Whatsapp BOT\node_modules\mongoose\lib\drivers\node-mongodb-native\connection.js:206:11)
at NativeConnection.openUri (C:\Users\COSMICBUG\Desktop\Whatsapp BOT\node_modules\mongoose\lib\connection.js:755:34)
at Mongoose.connect (C:\Users\COSMICBUG\Desktop\Whatsapp BOT\node_modules\mongoose\lib\index.js:404:15)
at Object.<anonymous> (C:\Users\COSMICBUG\Desktop\Whatsapp BOT\index.js:15:10)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
Node.js v18.16.0