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

mearn stack #2227

Open
manikanta290 opened this issue Oct 1, 2024 · 6 comments
Open

mearn stack #2227

manikanta290 opened this issue Oct 1, 2024 · 6 comments
Labels
missing code to replicate Can't replicate the issue until there is sample code needs more info not enough information in issue to debug stale no activity for 2 weeks

Comments

@manikanta290
Copy link

nodemon] app crashed waiting for file changes before starting...

[nodemon) restarting due to changes... [nodemon] starting node server.js

(node:15228) [MONGODB DRIVER] Warning: useNewUrlParser is a deprecated option: useNewUrlParser has no effect since Node.js Driver version 4. 0.0 and will be removed in the next major version

(Use node --trace-warnings ... to show where the warning was created)

(node: 15228) [MONGODB DRIVER] Warning: useUnifiedTopology is a deprecated option: useUnifiedTopology has no effect since Node.js Driver vers ion 4.0.0 and will be removed in the next major version

Example app listening on port 3000

MongoDB connection FAIL

[nodemon] app crashed waiting for file changes before starting...

@remy
Copy link
Owner

remy commented Oct 1, 2024

What's the actual issue here?

@remy remy added needs more info not enough information in issue to debug missing code to replicate Can't replicate the issue until there is sample code labels Oct 1, 2024
@mohit-nagaraj
Copy link

hey idts this is issue from nodemon side rather ur mongo db driver, it does state that useNewUrlParser & useUnifiedTopology is deprecated. dont use them

@ravin00
Copy link

ravin00 commented Oct 22, 2024

hey idts this is issue from nodemon side rather ur mongo db driver, it does state that useNewUrlParser & useUnifiedTopology is deprecated. dont use them

i agree with it this happened to me too. Since theses are deprecated warnings you can use these below alternatives to overcome the situation.

Set mongoose.set('useNewUrlParser', true)
Set mongoose.set('useFindAndModify', false)
Set mongoose.set('useCreateIndex', true)
Set mongoose.set('useUnifiedTopology', true)
Replace update() with updateOne(), updateMany(), or replaceOne()
Replace remove() with deleteOne() or deleteMany()
Replace count() with countDocuments()

@remy
Copy link
Owner

remy commented Oct 26, 2024

So… nothing to do with nodemon?

@ravin00
Copy link

ravin00 commented Oct 26, 2024

So… nothing to do with nodemon?

I think no this should work

Copy link

github-actions bot commented Nov 9, 2024

This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up.
Thank you for contributing <3

@github-actions github-actions bot added the stale no activity for 2 weeks label Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing code to replicate Can't replicate the issue until there is sample code needs more info not enough information in issue to debug stale no activity for 2 weeks
Projects
None yet
Development

No branches or pull requests

4 participants