Closed GniLudio closed 3 months ago
Hi! I have the same error in an Angular project. When initializing L.pixiOverlay
it fails at isWebGLSupported
as PIXI.utils
is undefined
TypeError: Cannot read properties of undefined (reading 'isWebGLSupported') at NewClass.initialize (L.PixiOverlay.js:102:39)
UPDATE: I managed to make it work. This lib does not support the latest Pixi version (8.1.6) so I installed pixi.js@7.4.2 and it worked
Hi! I have the same error in an Angular project. When initializing
L.pixiOverlay
it fails atisWebGLSupported
asPIXI.utils
isundefined
TypeError: Cannot read properties of undefined (reading 'isWebGLSupported') at NewClass.initialize (L.PixiOverlay.js:102:39)
UPDATE: I managed to make it work. This lib does not support the latest Pixi version (8.1.6) so I installed pixi.js@7.4.2 and it worked
Thanks, that fixed it.
How do I set up the PixiOverlay in a TypeScript project? I always get the error
Uncaught TypeError: PIXI.utils is undefined
.Setup
index.ts
types.d.ts
index.html
Project (Zip)
hello_pixi.zip