node icon indicating copy to clipboard operation
node copied to clipboard

TS types Inncompatible with version 7.3.2

Open human211 opened this issue 2 years ago • 1 comments

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;

human211 avatar Nov 28 '23 18:11 human211

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

bigtimebuddy avatar Jan 03 '24 19:01 bigtimebuddy