Description of the problem: I’m trying to move my experiment to pavlovia but after clicking the sync button I get error somewhere in my js code, and this is the line that the error refers to: code1Clock = new util.Clock();
Does anyone has any idea what should i do to solve this problem and also tell me about how this may cause problem?
Thank you!
Thanks @wakecarter ,
This is the message I get:
Successful sync at: 14:41:39, took 2.953s102.4763 ERROR Line 116: Unexpected token in VisualSeq.js
Alert 4210:JavaScript Syntax Error in ‘Begin JS Experiment’ tab. See ‘Line 1: Unexpected token’ in the ‘Begin JS Experiment’ tab.
For further info see 4210: Probable syntax error detected in your JavaScript code — PsychoPy v2020.2
Alert 4210:JavaScript Syntax Error in ‘Begin JS Experiment’ tab. See ‘Line 1: Unexpected token’ in the ‘Begin JS Experiment’ tab.
For further info see 4210: Probable syntax error detected in your JavaScript code — PsychoPy v2020.2
102.6930 ERROR Line 105: Unexpected token in VisualSeq-legacy-browsers.js
106.7318 INFO Successful sync at: 14:41:39, took 2.953s
And when I go to the error locations I see it’s this line: code1SeqVisClock = new util.Clock();
…
And these are the previous and subsequent lines:
// Initialize components for Routine “code1SeqVis”
code1SeqVisClock = new util.Clock();
import * as random from ‘random’;
var a, b, c, intervall, list, ran, total;
random.seed();
function num1_to_sec(n) {
return Number.parseFloat((0.22 * n));
}