Tell us what’s happening:
Describe your issue in detail here.
My project link return the correct result but test result keep showing
/json
should change according to the environment variable
MESSAGE_STYLE
(Test timed out)
Your project link(s)
solution: https://replit.com/@li-yon-yon/boilerplate-express-1
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Safari/605.1.15
Challenge: Use the .env File
Link to the challenge:
Make sure your server is up and running
Hello @Yon-Yon , I think the issue, as far as I can tell, is that you are not requiring dotenv as a dependency (normally you should add the path of the .env file, but in replite only requiring it is enough). Add this to your dependencies: require(‘dotenv’).config() Good luck.
Dotenv is not a requirement for this challenge on repl.
What link are you submitting?
The basic logic of your if statement looks correct to me.
I tried it again today and it worked! not sure why. though.
system
Closed
September 27, 2022, 1:23am
6
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.