jsPsych on Pavlovia #2887
adaniabutto
started this conversation in
General
Replies: 1 comment 3 replies
-
You are working with an older version of the <script type="text/javascript" src="jspsych/jspsych.js"></script> to: <script type="text/javascript" src="jspsych/jspsych-6.0.0.js"></script> |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I’ve set everything up to run my jsPsych experiment with Pavlovia, and the actual experiment displays and runs without issues locally (code here). The experiment uses jsPsych 6.0.
However, when I add the experiment to the Pavlovia platform and integrate Pavlovia into the timeline as per the instructions (see here), things stop working. I've created a minimal demo here https://pavlovia.org/ottuba/working-demo-representationalvar; the error that is displayed is the following:
The lines of code that are being referenced (line #66 in jspsych-pavlovia-3.2.5.js) are the following:
If I’m not mistaken, this means that the code in my timeline file (see here) lines 21–25 and 44–48) that initiates and terminates communication with Pavlovia is not being read because of some variable definition problem.
Now, when I check my jspsych.js file (see here), it is not clear to me that
jsPsych.plugins.parameterType
is undefined. There are a bunch of references in there tojsPsych.plugins
, but since I didn’t write the jsPsych plugin code myself, I'm not really sure what to look for.Can anybody tell me where the issue lies, or what variable I need to look for? Or might this be an issue arising from conflicting jsPsych and Pavlovia versions?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions