SyntaxFix
Write A Post
Hire A Developer
Questions
I had the same problem and which got resolved by using ./ before the directory name in my node.js app, i.e.
./
node.js
app.use(express.static('./public'));