The issue is that Babel 7.0 and up doesn’t recognize the env
preset anymore. just switch it to @babel/preset-env
in your .babelrc
.
Install the new preset:
npm install @babel/preset-env --save-dev
Update your .babelrc
:
{
"presets": [
"@babel/preset-env"
]
}
Try building again