I'm updating an old react app where its webpack config uses babel loader and its babelrc uses
"presets": ["react", "es2015"],
the error I get with a new file that uses async await is
[dev:server] SyntaxError: src/views/pages/V2.js: Unexpected token (25:13)
[dev:server] 23 | }
[dev:server] 24 |
[dev:server] > 25 | updateUser = async () => {
[dev:server] | ^
I've installed babel-preset-es2017 as well as babel-preset-env and updated the presets in the babelrc but still gives that error
is it missing something?