node.js + express + socket.io cannot load javascript files into index.html
I'm developing an application and the server is currently set up and working well. This is the index.html that shows when you access the server: <!doctype html> <html> <head> <title>Socket.IO chat</title> </head> <body> <script src="https://cdn.socket.io/socket.io-1.2.0.js"></script> <script type="text/javascript" src="./client.js"></script> <script type="text/javascript" src="./main.js"></script> </body> </html> However I get a 404 error "Failed to load resource: the server responded with a status of 404 (Not Found)" when importing those javascript files, which are in the same directory. Here