DEV Community

Edgar Lindo
Edgar Lindo

Posted on

Mongoose connect is not a function... What is wrong?

I have tried to connect mongodb to REACT in a million different ways, using uri, putting the code straight on the ./app, doing the connection in another file and requiring it in the ./app page... nothing has worked.

I believe I have the username and password just fine, along with the database name...

Why am I keep getting these errors and not able to connect?

Image description

Top comments (1)

Collapse
 
elindo586 profile image
Edgar Lindo

This is because I need to create a backend work and not put it on the front end..