Experiment throwing error online when window going to fullscreen

jsPsych version (e.g. 7.3.1):
PsychoJS.js:802 TypeError: Cannot read properties of undefined (reading ‘toString’)
at hex2string (hex.ts:35:25)
at Renderer3.set (AbstractRenderer.ts:389:39)
at Window._updateIfNeeded (Window.js:374:20)
at Window._refresh (Window.js:393:8)
at Window._fullRefresh (Window.js:422:8)
at _resizeCallback (Window.js:499:9)

I’m getting this error as soon as my experiment window opens in the browser. I’m not sure what is going wrong in my code. Could anyone provide possible issues with my code or execution which could have led to this?

Thank you