| Reference | Downloads | Github

TypeError: Cannot read property 'clearEvents' of undefined*

URL of experiment:

Description of the problem: Hi there! I am a complete novice when it comes to any kind of coding, so please bear with me. My experiment is crashing at a certain point and I’m not sure how to proceed. This is the error message I’m receiving:

  • TypeError: Cannot read property ‘clearEvents’ of undefined

I’ve tried editing the JavaScript portion of the code to read “psychoJS.eventManager” (instead of “events.”), to no avail. The part of the experiment where things are going wrong is a section where I’ve added code in order to allow participant responses to appear on screen (the code for which I found by scouring the forum). I have also reviewed the PsychoPy crib sheet and I suspect that the solution may be there, but I can’t be sure. Any ideas? Thanks in advance :slight_smile:

Hey! I’ve got a general suggestion: to get a better grasp on what’s going wrong it could be useful to learn a couple of debugging tricks. This experiment contains links to tutorials about error handling and writing debug output: Thomas Pronk / assignment_stroop · GitLab

1 Like