Error: the color components should all belong to [-1, 1]

I can run an experiment locally on psychopy and psychopy studio, but received the error message below when syncing to pavlovia to run it online.

I have been using the builder to set up my images, text boxes, and buttons components but apart from this, I do not set the colours of any of these components to change via the code component so couldn’t figure out where any of my colour components could have gone wrong.

There’s a bug with the colour picker. You need to add a $ to the start of the colour list in the component. Does that help?

Thank you for your reply!

I have skimmed through some of my components with the colour parameters using the ‘Find in experiment’ feature and couldn’t see any colour list that is missing the $ at the start (I attached a screenshot for example). I haven’t properly gone through all the components one by one as there are a lot of them so if there is a better way to look for this, I would really appreciate it. Otherwise I might resort to looking at each component manually.

Use Developer Tools to identify where the error is coming from.

Maybe it’s a variable colour

The developer tools shows 3 errors as in the 1st picture below. For the first line (onunhandledrejection, line 890) the code is in the 2nd picture. All the codes for the 2nd error (append, doAppend etc.) also don’t point to a specific variable/components that I have created.

Unfortunately this only really works when an error can be identified in your experiment’s JS file, rather than one of the PsychoJS files. Does the error happen straight away? If not, then can you work out what PsychoPy is trying to do at the point it crashes? That might narrow down which component to look at.

Print statements might help.