I am trying to update the old project but getting an error '@babel/runtime-corejs3/core-js-stable/reflect/construct' when trying to build the docker image. These are the dependencies -
"@babel/plugin-transform-arrow-functions": "^7.10.1",
"@babel/plugin-transform-runtime": "^7.15.0",
"@babel/polyfill": "^7.10.1",
"@babel/preset-env": "^7.15.0",
"@babel/runtime-corejs3": "^7.15.3"
babelrc file
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
["@babel/plugin-transform-runtime", {
"loose": true,
"corejs": 3,
"regenerator": true
}],
"react-hot-loader/babel",
"@babel/transform-arrow-functions",
[ "@babel/plugin-proposal-class-properties", { "loose": false } ],
[ "@babel/plugin-proposal-nullish-coalescing-operator", { "loose": false } ]
]
}