kaylogics Posted June 18, 2019 Share Posted June 18, 2019 Working on porting code from an old angular app to vue and am very new to PIXI. Upgraded PIXI to latest version. Issue I am facing is, the page renders fine the first time but when I go away from the page and come back I see this error in console: I am using the loader as so: const PIXIloader = new PIXI.Loader() I tried using PIXIloader.reset() before calling the PIXIloader.add() but doesnt seem to work and when I console.log the PIXIloader I still see the resources in the loader. If I manually reload the page it works fine. ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 18, 2019 Share Posted June 18, 2019 According to https://github.com/englercj/resource-loader/blob/master/src/Loader.js#L447 , reset() removes resources from loader. https://github.com/englercj/resource-loader/blob/master/src/Loader.js#L371 cant be triggered in your case. In this particular case, I dont know what can go wrong Please look at your code one more time or provide a demo. Congrats with first post! Quote Link to comment Share on other sites More sharing options...
kaylogics Posted June 18, 2019 Author Share Posted June 18, 2019 Thanks for your response. I am double checking my code now. Will get back with update soon. 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.