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

Type error for SmoothGraphics in renderer.generateTexture #43

Open
Specy opened this issue Oct 4, 2023 · 0 comments
Open

Type error for SmoothGraphics in renderer.generateTexture #43

Specy opened this issue Oct 4, 2023 · 0 comments

Comments

@Specy
Copy link

Specy commented Oct 4, 2023

I've updated from pixi 7.2.4 to pixi 7.3.1, I'm using the graphics smooth library to create dynamic sprites and I've encountered the type error:

Type error: Argument of type 'SmoothGraphics' is not assignable to parameter of type 'IRenderableObject'

Code:

const g = new SmoothGraphics()
const texture = this.app.renderer.generateTexture(g, { ... }) //error here in the g

Is this a mistake on my end or a type mismatch between the two libraries?

Downgrading pixi back to 7.2.4 fixes the issue. Just to note, this is not a runtime error, everything works fine, only typescript complains

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

1 participant