Skip to content

Cannot connect to mongose  #1

@cuzzysoft

Description

@cuzzysoft

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions