psychopy.org | Reference | Downloads | Github

Error tracking in PsychoJS

URL of experiment: https://run.pavlovia.org/MJB/fapesp_stimulusanticipation/html/

Description of the problem: * SyntaxError: Unexpected identifier 'is’

I don’t understand what this error refers to and when I press F12 to debug, it points to the following:
blockIntroText.setText(eval(blockIntro));
Dont understand what is the problem here.

Can anyone please take a look and enlighten me?

PS: there are several warning messages that I also cannot make sense of

@Marc_Buehner, you should not need to eval the string, you should be able to set the text using the ‘blockIntro’ variable.

If I take out the eval then it still works on Builder, but PsychoJS then throws this:

  • when importing condition: auxFiles/blockTypes.xlsx
  • when getting the value of resource: auxFiles/blockTypes.xlsx
  • unknown resource

I have nested loops, so depending on which condition I am in in the outer loop, a different instructions file is read in in the inner loop. Hence the eval string