First of, I already searched forum, but the problem cannot be resolved by following those suggestions already given. Replit no longer accepts .env files and FCC guide is now outdated. Hence, asking over again.
Tell us what’s happening:
I managed to find the way to connect to my MongoDB database circumventing need for .env file. For this I have copied full driver code example generated on MongoDB’s ‘Connect to Cluster’ section. So when I run a code on Replit I am able to connect to Mongo database. But FCC test fails throwing this error: ‘“mongoose” should be connected to a database’.
Was anyone able to pass FCC test recently. If so how you did it please?
Your help is desperately needed.
Your project link(s)
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36
Challenge: Install and Set Up Mongoose
Link to the challenge: