Description of the problem:
I created a working experiment in PsychoPy (using builder) and uploaded it to Pavlovia (URL: here). The experiment starts to run OK, but it crashes on the first trial when it hits a particular routine, giving me this error: * ReferenceError: random is not defined
The routine in question does contain some custom code, which I suspect is causing the problem, however the error does not make sense to me: the JS code for the experiment does not import or use
random (or call random as a should-have-been-defined object), because I had already changed all instances of
random (from the original python version) to
Math.floor(Math.random() ... )
As a sanity check, I dug into the complied JS code (here) and I can’t see any instances of random being used, either as a function or an object. So, I don’t understand what is going wrong with the experiment.
How should I proceed / debug this problem?