I’ve seen a few related posts on here but I can’t seem to make any solutions work on my end. I am very new to PsychoPy, Python, and online experiments in general so I am sorry if this issue is apparent and I am just missing something. The experiment runs just fine without error in PsychoPy, it just won’t move online for me…
Here are my errors:
ERROR line 3559: Unexpected Token: in FinalHebbParadigm.js.
ERROR line 3557: Unexpected Token: in FinalHebbParadigm-legacy-browers.js.
Of course. I think this is what you mean but this is the code converted into py and I think the error is in js… I couldn’t see any errors here so I’m a bit confused (again, very new to all of this).
Of course. I seem to have fixed the above errors, but have encountered some new ones…
84.7323 ERROR Line 3545: Unexpected token : in FinalHebbParadigm.js
87.4455 ERROR Line 3543: Unexpected token : in FinalHebbParadigm-legacy-browsers.js
Here are the lines of code for both errors in js (sorry):
3545 in js: text.setText(Sound10Filler[:(- 4)]);
3543 in legacy: text.setText(Sound10Filler[:(- 4)]);
This translates to JavaScript as Sound10Filler.slice(0, (- 4));
which means you’ll need to set it in a code component and use a variable instead of Python code in the text component.