UsKi44 Posted September 14 Share Posted September 14 Hello I'm new here and have one question to ask, trying to use Spine for my small pixi.js application. So the main problem here in my project is that, whenever I'm trying to initialize spine in some file it only gives me one error (photos of errors and loged out information will be shown down bellow (I think :)) )) I'm also sharing these chunks of codes that I'm using for example: loading assets,calling spine and etc. ALSO VERSIONS THAT I'M USING Pixi.js v7.3.2 | pixi-spine v4.0.4 | And exported spine is "spine": "3.8.75" version This is method to get spine: getSpine(key: string, bundle: string = BundlesEnum.GAME_ICONS): any { return this.loaded[bundle][key]; } Class where I'm trying to call this loaded Spine: import { Container } from "pixi.js"; import { RESOURCES } from "../global/global.config"; import { Spine } from "pixi-spine"; export default class SpineView extends Container { constructor() { super(); this.draw(); } draw() { // This takes spineBoy resource from loaded resources const resource = RESOURCES.getSpine("spineboy"); console.log(resource); // and here it is getting assigned to Spine const spine = new Spine(resource); this.addChild(spine); // This should work right? NO IT DOESNT } } And also here is the method which I'm using for loading resources (btw this method works): private async loadAssets(bundles: string[] = []): Promise<void> { const manifest = this.unloadedResources; const bundlesToLoad = bundles.length == 0 ? manifest.bundles?.map((bundle: any) => bundle.name) : bundles; await Assets.init({ manifest }); return Assets.loadBundle(bundlesToLoad); } I've checked everything and as I can see it logs out this object which is spineData as I can see (this log also will be shown as img in image section) I checked everything naming loading assets and etc, everything but nothing gives me proper answer of what might be the problem, even the almighty chatgpt can't help me. It logs out error which i mentioned in top bar... so anyone who knows something about this please help if u need any more info just tell me and I can add to it. Thank you in advance! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.