You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't understand why source instanceof NodeCanvasElement returns false as source seems to be a NodeCanvasElement instance. As a temporary workaround, I override NodeCanvasResource.test static method.
I work on a project which have to run on Node and browser, and I updated pixi.js to 7.3.2, so @pixi/node loads packages as @pixi/core, @pixi/assets, etc at version 7.3.2.
The problem is probably related to this, is there any plan to update this library at 7.3.2, or at 8.0.0?
The text was updated successfully, but these errors were encountered:
I'm getting this same problem still. When importing anything from @pixi/node it overrides the INSTALLED resources so that when I do Sprite.from(...) it errors because the INSTALLED list has been overridden.
Using Sprite from @pixi/node doesn't seem to help either so I'm not sure how to proceed.
When loading an image asset, I get this error : Unrecognized source type to auto-detect Resource
After investigation, the error happened during the texture creation here:
node/src/adapter/loadNodeTexture.ts
Line 27 in 65d42f7
The method
autoDetectResource
from @pixi/core used NodeCanvasResource.test here: https://github.com/pixijs/pixijs/blob/0238708e11d4842787e9144fad33479ff12cbe89/packages/core/src/textures/resources/autoDetectResource.ts#L114C13-L114C13I don't understand why
source instanceof NodeCanvasElement
returns false as source seems to be a NodeCanvasElement instance. As a temporary workaround, I override NodeCanvasResource.test static method.I work on a project which have to run on Node and browser, and I updated pixi.js to 7.3.2, so @pixi/node loads packages as @pixi/core, @pixi/assets, etc at version 7.3.2.
The problem is probably related to this, is there any plan to update this library at 7.3.2, or at 8.0.0?
The text was updated successfully, but these errors were encountered: