Pavlovia- psychoJS.eventManager.Mouse is not a constructor

URL of experiment: Pavlovia

Description of the problem:

Heya,
I’m still trying to launch my experiment online and after solving one problem the next one was right around the corner. Now my experiment gets stuck on some of the libraries.

This is is the error message:
" TypeError: psychoJS.eventManager.Mouse is not a constructor"

This might have something to do with the command event.Mouse(...) but JS is translating it to mouse = new psychoJS.eventManager.Mouse(...);. And this throws an error now.

I appreciate all the help I can get ^^ Thanks in advance.

Margo

Have you tried to create a mouse object in code? If you add a mouse component to your first routine you can refer to it in code for the rest of your experiment.

prac_mouse and mouse have been created in the builder. How do I refer it?

(post deleted by author)

Oh, my bad. I misinterpreted your message :sweat_smile: Do you have any advice on how to do it in code, so it won’t be a pain?