URL of experiment: Sign in · GitLab
Description of the problem: After running one block of trials online, I get the following error message when trying to continue to the second block: TypeError: Cannot read properties of undefined (reading 0)
The issue is likely around
trialRepeats = [5, 6, 5, 6], defined at the beginning of the experiment. This is then passed into nReps of the trial loop as
i is increased with each block).
My goal was to vary the number of trials per block, and this solution works well locally, so I’m not totally clear on what exactly isn’t properly defined.
Any help is greatly appreciated.