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

After installing the addon, I got Uncaught ReferenceError: regeneratorRuntime is not defined #21

Closed
vsymguysung opened this issue Feb 24, 2016 · 3 comments

Comments

@vsymguysung
Copy link

I have no idea why I get this error. Any idea?
Below is my environment information. Thanks in advance.

 -------------------------------
 Ember      : 2.3.1
 Ember Data : 2.3.3
 jQuery     : 2.1.4
-------------------------------

I can reproduce the error with a plain new ember-cli application with only this addon installed.

@machty
Copy link
Owner

machty commented Feb 24, 2016

Sorry about that; we tried to automate this process but need to take another stab at it to get it right. In the meantime, I upgraded the README docs to include the following:

ember-concurrency also requires that the Regenerator runtime be included in your app. The easiest way to ensure this is to enable the babel.includePolyfill option in your ember-cli-build.js or Brocfile.js files.

var app = new EmberAddon(defaults, {
  babel: {
    includePolyfill: true,
  },
});

@machty machty closed this as completed Feb 24, 2016
@vsymguysung
Copy link
Author

@machty Thanks much! 👍

@jamesarosen
Copy link

In case it helps anyone who comes across this, I ran into this problem in an addon of my own that uses ember-concurrency. The solution is to ensure that it loads after ember-concurrency:

// package.json
"ember-addon": {
  "after": "ember-concurrency",
  "configPath": "tests/dummy/config"
}

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

3 participants