Basic Node and Express - Serve an HTML File

Tell us what’s happening: what tha heck is going wrong??

Describe your issue in detail here.

Your project link(s)

https://boilerplate-express-1.jonathangaribal.repl.co/

solution: boilerplate-express (1) - Replit

Your browser information:

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

Challenge Information:

Basic Node and Express - Serve an HTML File

app.get('/', function(req, res) {
  res.sendFile = (__dirname + '/views/index.html');
});

There shouldn’t be an equals sign in this code, just follow res.sendFile immediately with the parentheses.

1 Like

you right !.. but still not passing

When I forked your repl, it passed for me.
Have you stopped and restarted your repl since you made the changes?

2 Likes

yes , I did it , now I didi it again and finally pass ! thanks

1 Like

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