I don´t know what's wrong

Tell us what’s happening:
I’m on the MongoDB and Mongoose - Install and Set Up Mongoose but i can’t get the cluster connected to the project. I added all the dependences on package.js, the lines on myApp.js and the connection string on .env, but when I submit the challenge, I get this errors:

mongodb" dependency should be in package.json

“mongoose” dependency should be in package.json

“mongoose” should be connected to a database

What am I doing wrong?

Your code so far
This is the project: https://glitch.com/edit/#!/join/abdea9b9-100d-4e7f-83d3-ed81e695bb1e



Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0.

Challenge: Install and Set Up Mongoose

Link to the challenge:

So your server.js, when it runs, never imports myApp.js - which is where you’ve set up all the Mongoose stuff.

If you look in your package.json, it uses server.js as its start file, so I would suggest you import your myApp.js into the server.js

I have try it, but the submit page keeps telling me that the dependencies are not in the package.js file. And the log just tell tha node is listening in the port 3000.

Here’s the link of the project: https://glitch.com/edit/#!/join/abdea9b9-100d-4e7f-83d3-ed81e695bb1e

1 Like

@baroman You must use the boilerplate Glitch link specified in the introduction page for this section. The boilerplate includes a customer server.js file used to test your app. You will only make changes to the myApp.js file.


Thank you very much!!, I get confused with the forums information :grimacing: