HTML script src problem [Express]

After I moved my project, from being just basic html, css, js with no server files to express, my html can’t find the script I am including in its tag. Probably some rookie mistake. First time using express.

Project:

P.S. Saw something about uploading static files in express, but don’t know if thats the solution, because the html js script would need to update one of its variables (from another file) every so often.
P.P.S. Also after i changed to express my autoUpdate.js might not work, because it’s was written before, and I don’t know how to rewrite using express, maybe someone can help me with this.

1 Like

You have the app.use commented out, and when you uncomment it, the file should instead be located at /static/jsfile.js or whatever

1 Like