You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MongooseError: The uriparameter toopenUri()must be a string, got "undefined". Make sure the first parameter tomongoose.connect()ormongoose.createConnection() is a string.
At line 15: await mongoose.connect(process.env.MONGO_URI);
I got this error while starting the server. How do I setup and connect to the mongose database please?
The text was updated successfully, but these errors were encountered:
MongooseError: The
uriparameter to
openUri()must be a string, got "undefined". Make sure the first parameter to
mongoose.connect()or
mongoose.createConnection()is a string.
At line 15:
await mongoose.connect(process.env.MONGO_URI);
I got this error while starting the server. How do I setup and connect to the mongose database please?
The text was updated successfully, but these errors were encountered: