LlabeL
Convex Community12mo ago
32 replies
Llabe

Type 'Iterable<FromType>' can only be iterated through when using the '--downlevelIteration' flag

Type error: Type 'Iterable<FromType>' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher.

14 | let index = 0;
15 | list = await list;
16 | for (const item of list) {
| ^
17 | promises.push(asyncTransform(item, index));
18 | index += 1;
19 | }

I get that error when doing: npm run build. How can I fix it? Thanks!
Was this page helpful?