Is this a bug report?
Yes.
Environment
node -v: v16.6.1
npm -v: 7.20.5
yarn --version (if you use Yarn): N/A
npm ls create-elm-app -g: create-elm-app@5.22.0
Then, specify:
- Operating system: Mac OS
- Browser and version (if relevant): Any
Steps to Reproduce
create-elm-app repro-steps
cd repro-steps
- Add some async code to the bottom of src/index.js, such as:
async function foo() {
var s = await bar();
console.log(s);
}
function bar() {
return "bar";
}
Expected Behavior
elm-app start and elm-app build run as expected
Actual Behavior
Both commands fail with the following error:
Failed to compile.
./src/index.js
Module not found: Can't resolve '@babel/runtime/regenerator' in '/Users/me/Projects/repro-steps/src'