NodeJS - Couldn't reach repl
When I run my nodejs project, the section that displays the HTML result says:
Hmmmm.... We Couldn't Reach Your Repl Make sure your repl has a port open and is ready to receive HTTP traffic.
Ah it’s that handler is undefed, I can fix that for you rn lol.
Edit: wait no it’s because of where your putting the listen statement (before the actual function definition) I think.
Edit2: oh lol it’s because you were trying to use the actual http port. You’ll have to listen on 8080 (like I did for you) or on 3000 or something like that.
Ok ok ok so. so. So,,,,, I didn’t think of this before, but since we are using express, we can use a "view engine" type thing and.... guess what, we can use pHp as the view engine!!! Cool right? What do ya think?
It’s the chat room, right? The thing is, you are getting an error. It’s probably that __dirname isn’t defined. Also do you want to work on the chat for a bit?