How to Fix SyntaxError: Unexpected token { encountered when running `npm start`
Cindy Lam
Posted on September 8, 2022
You may have already updated the node version to the latest LTS and then encountered this error.
This particular error is coming from the webpack-dev-server node module. In order to resolve this syntax error, you just need to update the version of your npm
package to the latest version, as below:
npm install -g npm@latest
If you need additional guidance on updating node/npm to latest version, read more here.
It is a really quick fix, but took me slightly longer than expected to figure out this issue. Hope this will help you out if you are going through the similar experience! p^v^q
💖 💪 🙅 🚩
Cindy Lam
Posted on September 8, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.