python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
NodeJS: Heroku deployment internal server, EJS template "not a function" error
I have a NodeJS app, with EJS as the templating engine, and when I deploy to Heroku I'm getting an internal server error. Here are the logs:
2022-01-20T13:30:24.000000+00:00 app[api]: Build started by...
T. Duke
Votes: 0
Answers: 0
Cannot set headers after they are sent to the client, how do I stop Express from setting headers that have already been set?
I'm using Express, Node, and EJS to fetch data from Spotify Web API. Without EJS, I'm able to send a request from browser and fetch data no problem. With EJS, code crashes with code: 'ERR_HTTP_HEADERS...
Rylei Nathaniel
Votes: 0
Answers: 0
I am trying to render a page based upon information from an EventEmitter's events. How to approach this?
I am using express to render a page with some html that is built from information pulled from an eventEmitter.
Essentially the code right now is something like this:
app.post("/login", (req,...
Josh Klein
Votes: 0
Answers: 1
EJS conditional rendering
How to render html if user is logged in or not. I have tried if, else but it doesn't work as i want it to be. Is there another way of doing the same.
<% if(typeof(user) === "defined" ...

Bhaskar
Votes: 0
Answers: 1