Dear all, I have encountered a similar issue. I had previously coded an experiment in Coder (only .py file) and wanted to port it to Pavlovia. As I am not fluent in JS I thought I use a trick to put in a Code Component and then copy-paste some of my .py program code through the Code Component. I managed to push my way through many debugging steps, but ultimately get stuck on ReferenceError messages, including the “frameDur” reference.
URL: https://pavlovia.org/VinVen/pavloviacodertest1 (but I continuously keep up updating the .js file in HTML in an attempt to reach a stable version)
I use Psychopy3 v.2020.1.2 on a Macbook.
Would it perhaps help if I put much additional code as functions in a separate .py file and import it in the .psyexp experiment? I may still need the Code Component for this, but could put it at the end of the experiment?
Many thanks and kind regards,