Basic Node and Express - Use the .env File

Tell us what’s happening:

I’m using Gitpod to do basic node and express learning, I got stuck at the “use .env file” challenge. It will take another .env file and not the new one i created. Or at least it seems that way when logging on console the process.env, it shows many variables that do not exist in mine, and it considers MESSAGE_STYLE=“uppercase” undefined, I tried MESSAGE_STYLE=uppercase too, and logging const mySecret = process.env[“MESSAGE_STYLE”]. Nothing is working.

###Your project link(s)


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

Basic Node and Express - Use the .env File

Hello, the link to your solution is showing an enternal service error 404.

This page can’t be found

are you using dotenv? can you share your code and also the env file?

Dotenv is included in the gitpod project

you need to config it in the file like instructed

can you share your code and your .env file?