I\'ve started studing Node JS.
So here is my files.
index.html
No matter what is requested by the browser, your server will always return the same exact file: index.html.
The error you are seeing is because your HTML file has a reference to bundle.js, which, when requested, is returned with the contents of index.html.
You should use a web framework so that you don't have to worry about these things. E.g. Express.