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
Hi @wan ,
indeed it’s been a while since this first tutorial. I’ve jumped to other examples, courses and tutorials since.
But I’ve taken some time to read you and to check this back now. The problem was really simple to solve and if I’d downloaded the github repo to check ( what I do now every time I follow a new example ) I’d noticed what you suggested, to know, that the config.env file has to be in the server repo, what seems obvious for trained users, but what wasn’t for me as a newbie.
Thanks a lot for your answer ad your time. Hope that this topic will help other newbie making some basic mistakes