Relative Content

Tag Archive for node.jsasync-awaitexceljstop-level-awaitfor-await

for loop is not waiting until dynamic import is finished

I am working on a script to fill an excel with data from the database. I’m trying to build a script that fills several excel files using a for loop. However, I get stuck with this, because JavaScript is already loading another file while it is still busy filling the old file. I see that it doesn’t wait until the dynamic import is done, the file where I insert cell’s and rows.