Python generated for-loops: creating errors in javascript

Hi all!

I am transitioning my experiment to online and am trying to debug the .js script. I keep coming across these for-loops with either error or with warning messages. I believe that they are generated by psychopy itself, as I didn’t create them. I do not know how to fix them nor can I find the loops in any of my code components in the builder (only in the .js script). Do you know how I can resolve this? I’ve attached a few of the examples with their respective error messages.

Thanks so much in advance! :smiley: