Here is the complete solution I used with our Strapi 4.0.7 build/deploy. I should mention that we never saw the issue until we tried to deploy to an Azure stack. This took us about 2 weeks to solve from the myriad of solutions out there! Hope this helps someone!!!
./npm/strapi/packages/core/admin/package.json
(Add the following to the dependencies)
"regenerator-runtime": "^0.13.9",
./npm/strapi/packages/core/admin/admin/src/index.js
(Add the following to the top)
import "regenerator-runtime/runtime.js";
.babelrc
.npm/strapi/packages/utils/babel-plugin-switch-ee-ce/.babelrc
(Replace code found with the following)
{
"presets": [
["@babel/preset-env",
{
"targets": {
"node": "14"
},
useBuiltIns: 'usage'
}
]
],
"plugins": ["@babel/plugin-transform-runtime",
{
"absoluteRuntime": false,
"helpers": true,
"regenerator": true
}
]
}