Not Found Error in NodeJS

Yash Parekh picture Yash Parekh · May 16, 2017 · Viewed 8.1k times · Source

I am new in NodeJS and I am trying to build an ecommerce application. I have readymade design and all the front end things with angularjs code. If I'm clicking on any menu then the page content changes along with the URL and is working fine but the problem is when I reload that page it shows me 'Not Found' error.

Internally loaded view

enter image description here

On reloading the Page

enter image description here

Note:- Error shows 106 line of app.js file but it simply contains the error printing statement that is "var err = new Error('Not Found');".

Any kind of help is appreciated.
Thanks in advance.

Answer

mirwaleed picture mirwaleed · May 16, 2017

you call the wrong route, the route is not defined on server that's why it gives you 404 error