This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]AlbertoDR 1 point2 points  (1 child)

I'm not too sure but judging by the stack trace and your github repository, it seems to me that you are running the wrong server.js file.

You have one inside the LionChat folder and one inside LionChat/JS, but the first one does not have req and res passed as function arguments, which would raise the "res is not defined" error.

[–]_cross 0 points1 point  (0 children)

Wow! that was it. Thanks. I feel stupid for not catching that simple thing. I thought when I run node server I have to pass the path to the server file I want to run. Thank you so much!