ReferenceError: liked_pictures is not defined

Hi, everyone. I know that this is a common post, but I seem to be unable to find a solution. The experiment runs well on PsychoPy, but I keep getting the same error in Pavlovia. The experiment url is here: https://pavlovia.org/agarciapenagos1/lh_sdd_task

liked_pictures is an empty array that gets populated as participants click on an image. The error appears to be in line 1793, which suggests that variable is not declared in the function. I have tried to declare the variable at the Begin experiment tab, but to no avail. I would really appreciate any help!

Please could you show how you are defining the variable in Begin Experiment?

Thanks a lot. Here is the screenshot:

Your problem is the let. Change the code component to Auto.

Thanks a lot!