unhandledpromiserejectionwarning: mongooseerror: the `uri` parameter to `openuri()` must be a string, got "undefined".
I think you miss importing env file.
require('dotenv').config({ path: 'ENV_FILENAME' });
unhandledpromiserejectionwarning: mongooseerror: the `uri` parameter to `openuri()` must be a string, got "undefined".
I think you miss importing env file.
require('dotenv').config({ path: 'ENV_FILENAME' });
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.
mongoose.connect(), first argument should be String, received undefined
//If .env file is used in config folder, make sure the DB_STRING is associated with its
//value, which is the mongodb connection string from the cluster
//Next, install dotenv and require it in the app.js file:
require("dotenv").config({ path: "./config/.env" });
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us