TypeError: Cannot read properties of undefined (reading 'end')
neridonk opened this issue · comments
neridonk commented
Version
"pixi.js": "^6.2.0",
"@pixi/gif" :"1.1.3"
I used the old docu
Install the loader for handle GIF images.
import { AnimatedGIFLoader } from '@pixi/gif';
import { Loader } from '@pixi/loaders';
Loader.registerPlugin(AnimatedGIFLoader);
function loadAsset(){
const app = new Application();
fetch('image.gif')
.then(res => res.arrayBuffer())
.then(AnimatedGIF.fromBuffer)
.then(image => app.stage.addChild(image));
}
What does this message indicate?
neridonk commented
Hm ok no errors on that , but the path .animation is empty
const loader = new PIXI.Loader();
loader.add('gifi', assetPath);
loader.load((loader, resources) => {
console.log(resources.gifi, resources.gifi.animation);
});
neridonk commented
nvm was no animated gif sry