React course of mosh

Hey, im currently studying node.js and react and working on the react course of mosh.
I’m trying to connect my project to mongoDB server and followed and instructions in the course and keep getting the same error.
note i tried it on different computers and environments and it’s still not working.
This is the error im getting:

I already tried to reinstall the libaries im getting errors on and still not working, would appreciate any help, thanks!

BTW this is the functions im trying to run: