I’m not really sure what you mean, I’m also doing this app.get("/", function(req,res){ res.sendFile('__dirname + /views/index.html') }) and I can’t figure out what i’m doing wrong…
ENOENT: no such file or directory, stat '/home/runner/workspaceviews/index.html'
However I do see the folder views and the file index.html within, I’m using replit.
I did parts of it and am still working on it, I want to learn some Node also, what does that have to do with you helping me to move forward? Please help me with this current problem I’m having, I’m not asking for the answer, just tell me what I’m doing wrong and give me another hint, that would help, thanks.
you are having issues with concatenating a variable and a string, do you see here how you are not concatenating the variable __dirname with the string /views/index.html?
if this is something you have issues with I suggest more JavaScript practice first, you can do the full stack curriculum javascript section
add a console.log rigth above and test the value of that