THREE.WebGLRenderer: Error creating WebGL context. TypeError: Cannot read property 'getExtension' of null

I am trying to use three.js to simulate a dice. This works fine on IOS simulator, Desktop chrome and firefox browser, mobile browsers, some Android mobile app. But when I test the dice on some Android devices on which the dice works great in mobile chrome browser, I encountered the Error creating WebGL context. TypeError: Cannot read property ‘getExtension’ of null. inside the app.

I have been struggling with this problem for a few hours but cannot find where the issue is. Is there anyone who can help out.

Appreciated

1 Like

how did you resolve this?