title: throw new MongooseError('The `uri` parameter to `openUri()` must be a string)
body: <p>i just configured my new project and added mongoose and as it seems new release 5.7.4 has a bug in it because of when i use code like this:</p>
  
  <pre><code>require('dotenv').config({
      path: '../.env' 
  })
  const mongoose = require('mongoose');
  console.log(typeof process.env.MONGO_URI == 'string')
  mongoose.connect(process.env.MONGO_URI, {
      useNewUrlParser: true,
      useCreateIndex:true,
      useFindAndModify: false,
      useUnifiedTopology: true
  })
  .then(()=&gt;{
      console.log('con to db established')
  })
  .catch(err=&gt;{
      console.log(`db err: ${err.message}`);
      process.exit(-1)
  })
  const schemas = require('./schemas');
  const models = {};
  for(let i in schemas){
      models[i] = mongoose.model(i, schemas[i]);
      console.log(i)
  }
  
  module.exports = {
      models,
      mongoose,
      connection: mongoose
  }
  </code></pre>
  
  <p>and log process.env.MONGO_URI it logs correct url so that means it is gettting variable from .env file correctly and even though i add <code>"mongodb+srv://MYUSERNAME:MYPASSWORD@&lt;CLUSTER&gt;.mongodb.net/MYDBNAME?retryWrites=true&amp;w=majority"</code> inside mongoose.connect instead of <code>process.env.MONGO_URI</code> it still logs the same, what can i do?</p>
  
  <p>P.S: I am saying that this is <code>^5.7.4</code> bug because i have other project initialized with <code>^5.7.3</code> and it does not logs error in title &amp; i use following code in both of them</p>