MongoDB and Mongoose - Install and Set Up Mongoose

Tell us what’s happening:
Describe your issue in detail here.
The code is working fine on local machine and cosesandbox. It’s connected to db used .then(() => cosnole.log(“connected”)). Though, it’ s not passing the test cases.

Your project link(s)

let express = require(“express”);
let app = express();
let mongoose = require(“mongoose”);
let uri = process.env[“MONGO_URI”];
mongoose.connect(uri, {
useNewUrlParser: true,
useUnifiedTopology: true,
}).then(() => console.log(“Connected”));


Your browser information:

Challenge: MongoDB and Mongoose - Install and Set Up Mongoose

Link to the challenge:

Please post the editor link so we can see the code.

The Codesandbox you posted is not serving the CSS so who knows what else might not be working as expected. I would suggest you use the Replit link the challenge gives to make sure everything is set up correctly.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.