Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process.env.MONGO_URI is undefined - Win10 #5

Open
Zerri opened this issue Aug 3, 2022 · 3 comments
Open

process.env.MONGO_URI is undefined - Win10 #5

Zerri opened this issue Aug 3, 2022 · 3 comments

Comments

@Zerri
Copy link

Zerri commented Aug 3, 2022

Hi Brad, I don't know if it is an issue but I've also tried to rename .env.example in .env
Thankyou for this crash couse, it is super!

@Sky-bits
Copy link

Sky-bits commented Sep 9, 2022

@Zerri i have no issue with code repo it working fine

@Akashrp512
Copy link

I had the same issue, here is the issue,
throw new MongooseError('The uri parameter to openUri() must be a ' +
^

MongooseError: The uri parameter to openUri() must be a string, got "undefined". Make sure the first parameter to mongoose.connect() or mongoose.createConnection() is a string.
at Connection.openUri (C:\Users\91974\Videos\Fullstack\Project-mgmt-system\node_modules\mongoose\lib\connection.js:695:11)

Help me out from this issue

@Armanidrisi
Copy link

Please make an attempt to include the .env file within the server folder and check..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants