Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working since PIXI 6.4.0 #143

Open
Ayfri opened this issue Oct 31, 2022 · 2 comments
Open

Not working since PIXI 6.4.0 #143

Ayfri opened this issue Oct 31, 2022 · 2 comments

Comments

@Ayfri
Copy link

Ayfri commented Oct 31, 2022

Hi, since PIXI 6.4.0 I'm getting this weird runtime error when using a tilemap like in the examples

CompositeTilemap.ts?d956:388 Uncaught TypeError: Cannot read properties of undefined (reading 'getShader')
    at CompositeTilemap.render (CompositeTilemap.ts?d956:388:1)
    at Container.render (display.mjs?216f:1649:1)
    at Container.render (Container.ts?77ce:647:34)
    at Renderer.render (Renderer.ts?81cb:511:23)
    at Application.render (Application.ts?cc4a:133:23)
    at TickerListener.emit (TickerListener.ts?ce2a:67:25)
    at Ticker.update (Ticker.ts?b198:422:37)
    at Ticker._tick (Ticker.ts?b198:124:22)

(I'm using webpack also)

I just can't use pixi-tilemap after PIXI 6.3.

@ivanpopelyshev
Copy link
Collaborator

Most probably double-pixi problem. remove package.lock , node_modules, reinstall everything. Try register plugin manually: https://github.com/pixijs/tilemap/blob/daf420ee1aafcc59d4dd2f1da3366dbca54ecc01/src/index.ts#L44

@Ayfri
Copy link
Author

Ayfri commented Nov 4, 2022

What would be the equivalent using @pixi/extensions new module ? as I'm getting a deprecation warning when using registerPlugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants