I am trying to get started building a site in ReactJS. However, when I tried to put my JS in a separate file, I started getting this error: \"Uncaught SyntaxError: Unexpecte
I have the same issue with you and I have change something in my server
you might try this
const root = require("path").join(__dirname, "./build"); app.use(express.static(root)); app.get("*", (req, res) => { res.sendFile("index.html", { root }); });