Got this error now, Idk what to do
Help a dev out ? Still new to js lol.
Got this error now, Idk what to do
Help a dev out ? Still new to js lol.
My guess is that you have a route defined in server.js that looks something like this:
app.get("/", function(request, response) {
response.sendFile(__dirname + "/views/index.html");
});
But inside the callback function you’re using res
instead of response
or whatever parameter is defined in the method signature.
That’s just a guess, though. You could send us the relevant context from server.js or your project name and someone can take a closer look.