We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, I ran into the following issue:
const testarray = [ {id: 1, name: 'foo'}, {id: 2, name: 'bar'} ] const doarray = [2] const test = async () => { for (let i=0; i < doarray.length; i++) { const a = testarray.findIndex(x => x.id === doarray[i]) await Promise.resolve(console.log(a)) } } test()
result: Error: Cannot use keyword 'await' outside an async function.
const testarray = [ {id: 1, name: 'foo'}, {id: 2, name: 'bar'} ] const doarray = [2] const test = async () => { const geta = i => testarray.findIndex(x => x.id === doarray[i]) for (let i=0; i < doarray.length; i++) { const a = geta(i) await Promise.resolve(console.log(a)) } } test()
result: compiles fine.
This was encountered using Rollup 2.21.0 and @rollup/plugin-buble 0.21.3 (Windows 10), with:
transforms: {asyncAwait: false}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello, I ran into the following issue:
result: Error: Cannot use keyword 'await' outside an async function.
result: compiles fine.
This was encountered using Rollup 2.21.0 and @rollup/plugin-buble 0.21.3 (Windows 10), with:
The text was updated successfully, but these errors were encountered: