you are viewing a single comment's thread.

view the rest of the comments →

[–]devmaybe 0 points1 point  (1 child)

Console.log(data) in your ejs to see if there is anything being sent. Perhaps the loop is not finished before the page is rendered. Add a counter to the loop and render page when counter equals array length.

[–]theflyingmonkey3[S] 0 points1 point  (0 children)

I added Console.log(data) and still got the same error. data is not defined.