machty / ember-concurrency

ember-concurrency is an Ember Addon that enables you to write concise, worry-free, cancelable, restartable, asynchronous tasks.
http://ember-concurrency.com
MIT License
691 stars 155 forks source link

Babel issue with `ember-concurrency` 4.0.0 #562

Closed esbanarango closed 4 months ago

esbanarango commented 4 months ago

"ember-concurrency": "4.0.0" "ember-cli-babel": "^7.26.11" "@babel/core": "7.23.9"

It appears you're attempting to use the new task(async () => { ... }) syntax, but the async arrow task function you've provided is not being properly compiled by Babel
machty commented 4 months ago

Hello, EC 4 requires you to register the async arrow Babel transform within your consuming apps/addons (this is because V2 Embroider addons can no longer automatically register things like Babel transforms).

See the release notes: https://github.com/machty/ember-concurrency/releases/tag/4.0.0