Because of this, I tried removing all python code whereby append was mentioned and including the code ‘Array.prototype.append = .push’ in the begin experiment tab but the problem persists…
What version of PsychoPy are you using? The latest versions automatically translate append to push and will crash if you add Array.prototype.append = .push in Begin Experiment.
Yes, the experiment failed to initalise with the array.prototype.append = .push. included…
However, without editing anything of the JS and keeping the auto translation from python (and thus it reads .append on both sides), it reads * TypeError: instr_Clicked.append is not a function .
When changing manually the .append to .push on the JS side, it gives the * TypeError: Cannot read properties of null (reading ‘width’)
If you are using 2021.2.3 then you should be able to make any edit on the Python side (e.g. insert and then delete a character) in the Auto translate code component to get the 2021.2 translator to spot .append and replace it with .push on the JS side.
I have replaced the .append with .push on the JS side, and it runs for one trial and then reads the error.
Checked out the linked solution and tried changing the mask files to separate ones (as not to use the same one but the masks are still necessary) and the error reads the same
If you’d like me to take another look, please could you save and sync your current psyexp file? The js files are currently from one hour ago but the psyexp file is from yesterday.