Reference errors in Pavlovia

URL of experiment: https://gitlab.pavlovia.org/lcdlab/spatial-memory
(please look at B1)
Description of the problem: I am trying to run this memory study online and I am having issues with the JS translation. I get reference errors for variables I didn’t add (automatically added from PsychoPy) such as ‘trialClock’ or ‘start’. Do I have to edit the JS file and keep defining these outside the functions? I’d appreciate any help on this!

Are you sure you haven’t added trialClock to a code component in the trial routine? The error is I think because it is being defined twice…probably once automatically by PsychoPy and once manually by you . I also noticed that one of the definitions didn’t have the word new init.

Best wishes

Wakefield

1 Like