that’s seems like there’s other code that’s looking for it out in /app. is there a stack trace that comes with that error? it might help you locate that other code.
This might work app.get("/", function (request, response) { response.sendFile(__dirname + "/static"); });
but I have mine set as app.use(express.static('public')) so it might be different for yours.
With a static/index.html file that just contains <h1>yay</h1> you will see a nice big bold yay front and center left-aligned in your preview. So start with that, and then build that out with app.get and app.post instructions after the app.use instruction. Express uses the “if more than one thing matches the requested URL, the first handler that got declared in the code wins”, so this won’t work for example: