I just started setting up the vs code env for mflix demo. Followed instructions. Have cluster up and runing on Atlas and able to connect to it via Compass. Also, set up dotenv_win.env file, added secret key and URI. Confirmed URI works in Compass. Went through the whole README to make sure all steps are done properly. When I run a test using:
npm test -t db-connection: I get this error.
● Test suite failed to run
TypeError: Cannot read property ‘close’ of undefined
I have read this forum and see others have been able to fix it but I have tried all remedies, no result.
When I run this command: run start - I get this error:
[nodemon] watching extensions: js,mjs,json
MongoParseError: URI malformed, cannot be parsed
Again, I see other threads with similar errors but somehow they have resolved. For me, I am not able to resolve this. Here is my dotenv_win.env file: (I have masked the password below)
Any help please. Thx.