Hello i’m following this official MERN Stack tutorial : https://www.mongodb.com/languages/mern-stack-tutorial.
But i’m stuck right after the command “nodemon server” wich throw in terminal an error in node_modules folders and file: mongodb-connection-string-url/lib/index.js:64 : const match = uri.match(HOSTS_REGEX);
TypeError: Cannot read property ‘match’ of undefined
Which seems normal as the “uri” in constructor function line 62 seems undefined ( if i had a console.log to check it ) .
Where could it come from ?
I’m pretty sure my ATLAS_URI in config.env is ok with right username and password ( no special character in it ) and follows the official format.
Any ideas what i missed ? Is the tutorial still up to date ? Does anything have changed lately in the packages used that could cause this error ?
Thanx in advance for your help with a newbie in MERN