'ReferenceError: X is not defined' pop up one after another

URL of experiment: Dembo [PsychoPy]
Gitlab: Sign in · GitLab
Built in v2023.2.0

I get ‘ReferenceError: currentLoop is not defined’ when I try to run the experiment. I tried to go to JS code and define currentLoop, but then I get ‘frameDur is not’ defined, and so on, and so on…

I feel like there’s a deeper problem here I can’t see. What should I do to get my experiment running?

The problem was either caused by a Form or a Button component (with 1 line of code). I ended up deleting both.