Jump to content

PixiJS Assets Problem Loading Spritesheet


mareydo
 Share

Recommended Posts

Hello guys!
I'm trying to implement new @pixi/assets to load spritesheet from my Sanic backend.

When I load local json+png from frontend it works normally, but when I do request on backend, I will get:

ERROR Error: Uncaught (in promise): Error: [Loader.load] Failed to load BACKEND_URL.json.
TypeError: Cannot read properties of null (reading 'baseTexture')
Error: [Loader.load] Failed to load BACKEND_URL.json.
TypeError: Cannot read properties of null (reading 'baseTexture')

[Assets] BACKEND_URL.png could not be loaded as we don't know how to parse it, ensure the correct parser has being added

When I look into the network monitor, the frontend version is invoking calls to some loadImageBitmap callback and then the png file,
while the backend version doesn't request anything further whatsoever.

I'm using the same json, png, PIXI v6.5.2

Thanks for any tips

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...