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
Top comments (0)