You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
scpmx
changed the title
Using async js causes build to fail with "Module not found: Can't resolve '@babel/runtime/regenerator'"
Using async code causes build to fail with "Module not found: Can't resolve '@babel/runtime/regenerator'"
Aug 11, 2021
Is this a bug report?
Yes.
Environment
node -v
: v16.6.1npm -v
: 7.20.5yarn --version
(if you use Yarn): N/Anpm ls create-elm-app -g
: [email protected]Then, specify:
Steps to Reproduce
create-elm-app repro-steps
cd repro-steps
Expected Behavior
elm-app start
andelm-app build
run as expectedActual Behavior
Both commands fail with the following error:
The text was updated successfully, but these errors were encountered: