How can I get rid of this error? (update_loading_progress_bar) #1130
-
jspsych.js:2559 Uncaught TypeError: Cannot read property 'style' of null Is this error important and how can I get rid of it? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
Hi @EceKayaMPI! We are aware of this bug (issue #648). It doesn't cause any problems, so you can safely ignore it, and we'll get it fixed in the next release 👍 |
Beta Was this translation helpful? Give feedback.
-
Hi @becky-gilbert , I believe this problem still exists. This is a sample page. Here is the code: const stimuli = [`audio/1.mp3`, `audio/2.mp3`, `audio/3.mp3`]
const experiment = [];
const end_message = {
type: 'html-keyboard-response',
choices: ['space'],
stimulus: `Press the space key.`,
};
experiment.push(end_message);
jsPsych.init({
timeline: experiment,
preload_audio: stimuli,
use_webaudio: false,
on_finish: function(){
}
}); I face this problem sometimes, not every time. |
Beta Was this translation helpful? Give feedback.
-
Dear @becky-gilbert and other experts,
When I use the old jspsych.js (where this bug remains), I get the error, jspsych.js:2559 Uncaught TypeError: Cannot read property 'style' of null every time the audio loop ends. It pauses for a long while before starting the next loop, which is a problem for the experiment. When I upgrade to the newer version, same thing happens without any error appearing on the console. How do you think I can solve this? I tried switching to web audio, but it doesn't seem to solve it. |
Beta Was this translation helpful? Give feedback.
Hi @EceKayaMPI! We are aware of this bug (issue #648). It doesn't cause any problems, so you can safely ignore it, and we'll get it fixed in the next release 👍