Relative Content

Tag Archive for javascriptnode.jsexpress

Error every time I try to run a node express project

Hello first time here and I am practicing node and express js with a udemy course project. I initially ran the solution code and it worked fine. When i started to create my own file and followed the steps of the solution code I started getting this weird type error. Then i tried running the solution code again and now the solution has the same type error even though it worked fine before.
I do have the json packages installed and npm i as well. Is there something I haven’t installed, node is up to date and I have not reassigned the constant variable; since nothing has changed i don’t understand how it ran fine before and now its not.