fs.getFolder() stucks in "MyPlugin is working"

I am trying to run this How to export all children of all selected artboards in an async manner - #13 by gdreyv in my plugin “MyPlugin”.
But when I am trying to run my plugin it shows me a loader with text “MyPlugin is working”. The loader keeps loading.
I think the problem is beacuse of await fs.getFolder();
Is there any solution of this?

Try wrapping your code in a try/catch so you can log a more detailed error.
fs.getFolder() should open a dialog to select a folder on your filesystem, so if that’s not happening then check that you have imported fs correctly.