DEV Community

Edgar Lindo
Edgar Lindo

Posted on

3 1

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 (2)

Collapse
 
elindo586 profile image
Edgar Lindo

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

Collapse
 
ajayckt profile image
Ajay-CKT

get a visit to realm-web SDK, hope you may find any hint on your bugs!

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay