My terminal says:
TypeError: connection.once is not a function
at Object. (C:\Users\Lisa\Desktop\exercise-tracker\mern-exercise-tracker\backend\server.js:16:12)
I think my other problem is this:
In my .env file, I have pasted the ATLAS_URI= connection string from mongodb Atlas and it still isnât working. I did not yet change the part of my .env file. I canât figure out what the name should be! Can anyone help?
Thanks! This may sound really silly⌠but I donât know where to find my db name. Would that be my âproject nameâ in mongodb atlas? Which in this case, I named Exercise App.
Your first example is Mongoose, and your second example is MongoDB. If the tutorial you are following is using Mongoose then you should stick with that. The syntax appears to be correct. Make sure you installed it properly according to the tutorial.