If I understand correctly, the experiment works fine online, but the problem shows only offline, right?
Looking at your Javascript code, you are using list() the same way as in Python. For example:
if ((! (population instanceof list))) {
population = list(population);
}
But list is not a javascript object/method. I can see the usage of the list 23 times in your code, so you need to fix it to make it work online.
About the error you received, I am not sure what is causing it.
Did you try updating PsychoPy to the newest version? Because it works on my machine (v2022.2.5)
It’s actually quite the opposite: it works perfectly offline but breaks online. I have the latest version of Psychopy (v2023.1.1).
I do use a lot of code componente involving lists. I thought the conversion to JS was done automatically in the builder.
It’s odd that you’re getting a different error than me. I will check how lists work in JS and get to it, but sadly I believe this doesn’t solve my issue with the trials
I meant the opposite. It works fine offline and doesn’t work online
Maybe someone else has more experience with it and can give a different perspective. I’m not sure why you are getting this error…