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

Uncaught TypeError: renderer.incDisplayOrder is not a function #105

Open
vvl1mm opened this issue Jan 9, 2024 · 6 comments
Open

Uncaught TypeError: renderer.incDisplayOrder is not a function #105

vvl1mm opened this issue Jan 9, 2024 · 6 comments

Comments

@vvl1mm
Copy link

vvl1mm commented Jan 9, 2024

using this, when i do app.stage = new Stage(); it gives me this error, i have not found anything about it and i appreciate any help

@ivanpopelyshev
Copy link
Collaborator

ivanpopelyshev commented Jan 9, 2024

Which version of pixi do you use with it? Probably because "renderer" wasnt patched somehow, that means there are two pixi-'s in your node_modules, one yours and one from pixi-layers, and pixi-layers patched wrong pixi

re-installing deps and checking everything usually helps

@vvl1mm
Copy link
Author

vvl1mm commented Jan 10, 2024

i have pixi downloaded as single pixi.js file added in html and the layers is via npm install, might that be the issue? im using pixi.js - v7.3.2

@ivanpopelyshev
Copy link
Collaborator

ivanpopelyshev commented Jan 10, 2024

You have to use pixi-layers.umd , it exists in node_modules, just copy that file, and include same way in your html . It is specially for us , old-timers :)

@ivanpopelyshev
Copy link
Collaborator

One moment, i dont see it in npm : ( gonna check again

@ivanpopelyshev
Copy link
Collaborator

ivanpopelyshev commented Jan 10, 2024

https://www.npmjs.com/package/pixi-layers?activeTab=code

dist/pixi-layers.js in your node_modules/@pixi/layers - that's the file you need

@vvl1mm
Copy link
Author

vvl1mm commented Jan 11, 2024

thanks, that solved the problem :) i appreciate your help alot

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