TypeError: cannot read property 'logger' of undefined

URL of experiment: Pavlovia

Description of the problem: I’m getting this error message when I try to run my word association experiment online. It happens every time a key is pressed, which makes me think that there is a problem with the keyboard component of the experiment. I think that part of the problem might be that the following python code doesn’t seem to have been reproduced in the .js file:

# -------Run Routine "trial"-------
while continueRoutine and routineTimer.getTime() > 0:
    # get current time
    t = trialClock.getTime()
    tThisFlip = win.getFutureFlipTime(clock=trialClock)
    tThisFlipGlobal = win.getFutureFlipTime(clock=None)
    frameN = frameN + 1  # number of completed frames (so 0 is the first frame)
    # update/draw components on each frame
    #keyboard parameters
    keys = event.getKeys()
    for key in keys:
        if key == 'space':
            current_word = current_word + ' '
        elif key == 'backspace':
            current_word = current_word[:-1]
        elif key == 'lshift' or key == 'rshift':
            modify = True
        elif key == 'escape':
            core.quit()
        elif key == 'return':
            stored_submit_times.append(word_clock.getTime())
            stored_words.append(current_word) # store
            isFirstKey = True
            current_word = ''              # clear
            type_clock.reset()
        else:
            if isFirstKey:
                type_clock.reset()
                stored_start_times.append(word_clock.getTime())
                isFirstKey = False
            if modify:
                current_word = current_word + key.upper()
                modify = False
            else:
                current_word = current_word + key

I also can’t find a corresponding component in my .js. experiment file. Also, when I push the backspace key, it prints the word “backspace” rather than deleting the previous character; and when I hit “enter” the experiment moves on to the next trial rather than allowing the participant to continue entering data until one of the two activity timers expires.

Can anyone help with this?

Thanks,

Peter

2019 WA v4.py (25.2 KB)