My .env file is not loading on repl i have
created a .env file,
installed dotenv,
done require(‘dotenv’).conf,
tried without all of this…nothing seems to work
please help me out its been over 3 hours now since i am stuck on this one line challenge
You should not have commented out the export of the app:
// //---------- DO NOT EDIT BELOW THIS LINE --------------------
module.exports = app;
The challenge says:
Then tell the GET /json route handler that you created in the last challenge…
You changed the route to /, which will fail the tests.
The console in Repl.it does tell you of a lot of the errors, when you face them. So, I suggest you spend some time getting to understand the console and its error messages.
I assume you can see the changes I made in the app. Is this correct?
Hope this clarifies.
PS: Many challenges rely on the code from previous challenges. So, commenting out code, when you are not told to do so, will likely fail tests.