Help! ReferenceError: Can’t find variable: currentLoop

URL of experiment: Constellations_NAI2022_ENG [PsychoPy]

Description of the problem: When running the experiment, I run into an error:
ReferenceError: currentLoop is not defined

After some searching it seems that this used to be a problem when there are no loops in the experiment, but my does have 2 loops. I’ve added credits to the experiment so someone could help me diagnose the problem. Any help would be truly appreciated. I’ll also attach a zip file with the JS code.

If someone is willing to help further, i can also provide a link to the experiments gitlab.
Constellations_NAI2022_ENG.js.zip (17.9 KB)

Any help would be greatly appreciated since I’ve been stuck on this problem for days,
Thanks!

The error seems to be related to automatic code in 2022.2.4 put in place to deal with experiments that don’t have any loops.

Please could you upload your psyexp file? Have you added any custom code which includes the variable currentLoop?

Hello, no custom code has been added which includes a variable currentLoop. I will attach the psyexp file below.
Constellations_NAI2022_ENG.psyexp (366.5 KB)
trial_online.csv (2.3 KB)

Did you ever find a solution for this? I’m running into a similar issue now in version 2023.2.3 and have tried every other suggestion I have been able to find on the forums.