Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find module '@babel/runtime/helpers/esm/regeneratorRuntime' in a fresh new app #445

Open
boris-petrov opened this issue May 23, 2022 · 1 comment

Comments

@boris-petrov
Copy link

boris-petrov commented May 23, 2022

Run ember new --yarn ember-cli-babel-bug. Then modify config/targets.js to be just ['firefox 35']. To ember-cli-build.js add:

'ember-cli-babel': {
  includeExternalHelpers: true,
  includePolyfill: true,
},

Run the app with ember serve and watch it blow in a browser.

A few things to note - using npm instead of yarn fixes the issue. Downgrading all @babel packages to 7.17.x also fixes the issue. I think this is somewhat related.

@boris-petrov
Copy link
Author

@nicolo-ribaudo - I'm pinging you directly here because you seem to be the one who's implemented the PR (and also has been answering in a couple of issues related to this one in the Babel repo). If you're unfamiliar with Ember, npm install -g ember-cli should allow you to run the ember new and ember serve commands I've written above and the value in ember-cli-build.js should go in the hash in new EmberApp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant