Kaboom display bug in Chrome

Bug description:
running a brand new Kaboom template, I see this error in any chrome-based browser on my Mac, and the scene doesn’t render…

ERROR: Cannot read properties of null (reading ‘createShader’)
→ node_modules/kaboom/src/kaboom.ts:1311:23
→ node_modules/kaboom/src/kaboom.ts:516:19
→ node_modules/kaboom/src/kaboom.ts:602:14
→ code/main.js:4:0

Expected vs Current Behavior:
it should work. It DOES work in Safari…

Steps to reproduce:

Bug appears at this link: https://replit.com/@DavidHoareKPR/BiodegradableCrispSolution#code/main.js

Browser/OS/Device: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

Replit Profile: https://replit.com/@DavidHoareKPR

Can you confirm that your chrome-based browser supports WebGL? I believe that is required in order to run a shader.

1 Like

I’m just using the most recent Chrome, and Brave. They both give that error.

Ah - thank you. Yes, the hardware-acceleration toggle had been turned off.
Thanks you for the pointer.
Cheers,
David

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.