Closed AshTech25 closed 3 years ago
Did you make an ENV file in the root directory?
Make an ENV File in root directory and fill the values.
create a file named .env and enter this line: MONGO_URI=your db connection in mongodb atlas
then restart the server to fix this issue.
please ask this type of questions in Udemy Q/A. Only create an issue for an error in the repo not in your code.
Error: The
uri
parameter toopenUri()
must be a string, got "undefined". Make sure the first parameter tomongoose.connect()
ormongoose.createConnection()
is a string. [nodemon] app crashed