miketalbot/js-coroutines

Uncaught ReferenceError: regeneratorRuntime is not defined

Closed this issue · 3 comments

I attemped to use mapAsync in a Vue project scaffolded with vue-cli-3.

image

The inclusion of any async function in the same file where mapAsync is invoked hotfixes the issue.

const a = async () => { }

Got it, hmmm, babel not being auto included. I'll have a look.

Ok version 2.1.54 fixes this ( I believe ) by switching to babel transform-runtime/runtime hopefully working for you now. Please let me know if there are any further issues :)