No loop but this error "ReferenceError: currentLoop is not defined"

This line gives the error:

currentLoop = psychoJS.experiment; // right now there are no loops

And I don’t have any custom code that refers to currentLoop.

I have the same error. Get the " ReferenceError: currentLoop is not defined" error on experiment start. When I use ctrl+shift+i to see the error line, it is on:

async function updateInfo() {
currentLoop = psychoJS.experiment; // right now there are no loops
expInfo[‘date’] = util.MonotonicClock.getDateStr(); // add a simple timestamp
expInfo[‘expName’] = expName;
expInfo[‘psychopyVersion’] = ‘2023.2.2’;
expInfo[‘OS’] = window.navigator.platform;

Specifically, the error is on the 2nd line as gamze said above.

I have done the fixes mentioned earlier (loop around entire experiment, checking all sheet column names, etc.). Any ideas? Did you ever get a fix gamze?

Same problem here. I keep getting the error “ReferenceError: currentLoop is not defined”, even in a experiment that has a loop with nReps=5, and isTrials activated. None of the solutions on this post worked.
The error is on the same line as gamze and Curtis_Rogers:

currentLoop = psychoJS.experiment; // right now there are no loops

By the way, my code is running on 2023.2.3.

Do you use audio files in your experiment? I am currently testing if that may be my issue.

Did you figure that out? I meet the same problem

I am also having this problem with no audio files in my experiment. Any updates?

Also running into this issue on line

currentLoop = psychoJS.experiment; // right now there are no loops

and not using audio files. Have tried putting a loop around the entire experiment and emptying cache/running in incognito. I’m also on version 2023.2.3.

Still no solutions to this yet??

im having the same issue on v2024.2.1 - there error comes up after initializing