Basic Node and Express - Use the .env File

Tell us what’s happening:
I need help solving the process environment variable challenge. It seems that everything should work, but I can’t get the test to pass.

Your project link(s)

solution: express-project - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/111.0

Challenge: Basic Node and Express - Use the .env File

Link to the challenge:

I forked your repl and it passed for me, though at first it wouldn’t run as it’s trying to start the repl from index.js (which doesn’t exist). I renamed server.js as index.js and then it worked fine.

Have you saved your env variable successfully in your Secrets tab?

1 Like

I restarted my browser and now the test passed! It may have been just a replit bug. Thanks for taking a look.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.