You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there!
I've installed [email protected] using npm and then tried to compile my typescript file with only one string of code:
import * as phaser from "phaser-ce";
Then I got this error:
node_modules/phaser-ce/typescript/phaser.comments.d.ts(14728,11): error TS2415: Class 'Phaser.Matrix' incorrectly extends base class 'PIXI.Matrix'.
Types of property 'append' are incompatible.
Type '(matrix: Matrix) => Matrix' is not assignable to type '(matrix: Matrix) => Matrix'. Two different types with this name exist, but they are unrelated.
Types of parameters 'matrix' and 'matrix' are incompatible.
Type 'PIXI.Matrix' is not assignable to type 'Phaser.Matrix'.
Property 'type' is missing in type 'Matrix'.
node_modules/phaser-ce/typescript/phaser.comments.d.ts(23888,11): error TS2415: Class 'Phaser.RenderTexture' incorrectly extends base class 'PIXI.RenderTexture'.
Types of property 'render' are incompatible.
Type '(displayObject: DisplayObject, matrix?: Matrix | undefined, clear?: boolean | undefined) => void' is not assignable to type '(displayObject: DisplayObject, matrix?: Matrix | undefined, clear?: boolean | undefined) => void'. Two different types with this name exist, but they are unrelated.
Types of parameters 'matrix' and 'matrix' are incompatible.
Type 'Matrix | undefined' is not assignable to type 'Matrix | undefined'. Two different types with this name exist, but they are unrelated.
Type 'Matrix' is not assignable to type 'Matrix | undefined'.
Type 'PIXI.Matrix' is not assignable to type 'Phaser.Matrix'.
The text was updated successfully, but these errors were encountered:
Hello there!
I've installed [email protected] using npm and then tried to compile my typescript file with only one string of code:
import * as phaser from "phaser-ce";
Then I got this error:
The text was updated successfully, but these errors were encountered: