expo-pixi icon indicating copy to clipboard operation
expo-pixi copied to clipboard

TypeError: gl.createShader is not a function.

Open jeremytubbs opened this issue 5 years ago • 4 comments

Hello,

I am getting the following error when trying to run this example - https://github.com/expo/expo-pixi/blob/master/examples/filter-image/App.js when using "expo": "^33.0.0"

TypeError: gl.createShader is not a function. (In 'gl.createShader(type)', 'gl.createShader' is undefined)

Any help would be greatly appreciated.

Thanks.

jeremytubbs avatar Jun 29 '19 22:06 jeremytubbs

Having the same issue. Get warning and nothing shows up

afshawnlotfi avatar Jul 01 '19 18:07 afshawnlotfi

I believe this is an issue with the latest version of expo/browser-polyfill package that expo-pixi itself requires. The maintainer of both packages has just merged in a fix into that package. I'm not sure when this repo will be updated to use it, but you may want to downgrade to expo-pixi 1.0.1 until everything is updated.

If that doesn't work, try installing the gl-matrix package: https://www.npmjs.com/package/gl-matrix. The dependencies for expo-pixi are a bit wonky right now. If you are still have issues after those steps ... maybe I can be of further assistance?

duncan-iaria avatar Jul 02 '19 00:07 duncan-iaria

I'm also running into issues here. I installed expo-pixi via expo install [email protected], hit the expo-asset-utils issue, so installed that as well (same way). Still didn't work, so I then installed gl-matrix via expo install gl-matrix. I still get the same error. Any other ideas?

robksawyer avatar Jul 07 '19 13:07 robksawyer

I believe this is an issue with the latest version of expo/browser-polyfill package that expo-pixi itself requires. The maintainer of both packages has just merged in a fix into that package. I'm not sure when this repo will be updated to use it, but you may want to downgrade to expo-pixi 1.0.1 until everything is updated.

If that doesn't work, try installing the gl-matrix package: https://www.npmjs.com/package/gl-matrix. The dependencies for expo-pixi are a bit wonky right now. If you are still have issues after those steps ... maybe I can be of further assistance?

Any other ideas?

robksawyer avatar Jul 09 '19 19:07 robksawyer