URGENT: Piloting the experiment online

The code:Con1_lastrun.py
Description of the problem: I am trying to pilot the experiment but this pop up window saying “TypeError: Object doesn’t support property or method ‘escape’” shows up.

How do I fix this and does it really have to do with the ‘escape’ because I saw that working for other experiments?

Thank you in advance!

Does this thread help at all?
https://discourse.psychopy.org/t/new-errormessages-after-pavlovia-esc-changes-july-2020/14893/7?u=wakecarter

Thank you @wakecarter!

But now I got another warning:

TypeError: Cannot read property ‘_psychoJS’ of undefined

Do you have any advice?

Do you have any sound components or code?

I’d need to see the JS code alongside the Python.

Can you use the console to track down which line is giving the error message?

What version of PsychoPy are you using.

The first few lines of your JS code are:

import { PsychoJS } from 'https://pavlovia.org/lib/core.js';
import * as core from 'https://pavlovia.org/lib/core.js';
import { TrialHandler } from 'https://pavlovia.org/lib/data.js';
import { Scheduler } from 'https://pavlovia.org/lib/util.js';
import * as util from 'https://pavlovia.org/lib/util.js';
import * as visual from 'https://pavlovia.org/lib/visual.js';
import { Sound } from 'https://pavlovia.org/lib/sound.js';

whereas I’m more used to seeing:

import { PsychoJS } from './lib/core-2020.1.js';
import * as core from './lib/core-2020.1.js';
import { TrialHandler } from './lib/data-2020.1.js';
import { Scheduler } from './lib/util-2020.1.js';
import * as util from './lib/util-2020.1.js';
import * as visual from './lib/visual-2020.1.js';
import * as sound from './lib/sound-2020.1.js';

Did you upload by pressing the sync button?

I would highly recommend using 2020.1.3 for online experiments (until 2020.2 comes out)

I was using 3.2.4, but even when I changed it to 2020.1 and edited the import part of the script, the error still persists