Uncaught MigrationError: The global jsPsych
variable is no longer available in jsPsych v7.
#2740
-
Hello, I would like to ask for help with a migration error. I have been trying to adapt this vocabulary task to jsPsych 7.3. I have overcome some migration errors but there's one I can't manage. I would be very grateful if you could please take a look. The error is:
It refers to the line The script is:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi @pablobernabeu, It looks like you haven't initialized an instance of jsPsych yet using // initialize jsPsych before calling any jsPsych functions
const jsPsych = initJsPsych() (Adding |
Beta Was this translation helpful? Give feedback.
Hi @pablobernabeu,
It looks like you haven't initialized an instance of jsPsych yet using
initJsPsych
. This section of the migration guide explains what you need to do here.(Adding
this.
beforejsPsych
is only necessary inside of plugin code. It is not needed in the main script file.)