Root level logger middleware should be active error

Tell us what’s happening:
On the terminal, the output is getting printed correctly but when I submitted the code I’m getting the below error

screenshot of the error

Your project link(s)

solution: https://boilerplate-express-2.rahulbhoir.repl.co

Your browser information:

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

Challenge: Implement a Root-Level Request Logger Middleware

Link to the challenge:

Hello there,

It should not be a named function:

app.use(function middleware(req, res, next){

Hope this helps

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