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

TS types Inncompatible with version 7.3.2 #8

Open
human211 opened this issue Nov 28, 2023 · 1 comment
Open

TS types Inncompatible with version 7.3.2 #8

human211 opened this issue Nov 28, 2023 · 1 comment

Comments

@human211
Copy link

human211 commented Nov 28, 2023

when I try to build client code with pixi/node dep I see errors:

../draw/src/views/figures/FigureCircle.ts:14:19 - error TS2345: Argument of type 'Graphics' is not assignable to parameter of type 'DisplayObject'.
  Types of property 'children' are incompatible.
    Type 'DisplayObject[]' is not assignable to type 'readonly FederatedEventTarget[]'.

14     this.addChild(this._gr);
------

../draw/src/views/figures/FigureText.ts:20:25 - error TS2345: Argument of type 'Text' is not assignable to parameter of type 'DisplayObject'.

20     this._cont.addChild(this._text);

------
src/draw.service.ts:116:74 - error TS2345: Argument of type 'Graphics' is not assignable to parameter of type 'DisplayObject | RenderTexture'.
  Type 'Graphics' is not assignable to type 'DisplayObject'.

116     this.curTimelineCanvas = drawed ? (this._app.renderer.extract.canvas(cont) as unknown as Canvas) : null;
@bigtimebuddy
Copy link
Member

@human211 sorry just seeing this now. Are you sure you don't have different versions of pixi.js installed? Need a reproduction.

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