I am porting an old game into ionic / angular, Everything was going well until I tried to import the rexui plugin,
I installed rexui using npm with the following command - npm i phaser3-rex-plugins
As soon as I import the rexui plugin with the following statement:
import UIPlugin from ‘phaser3-rex-plugins/templates/ui/ui-plugin.js’;
I get the following error:
Error: node_modules/phaser3-rex-plugins/plugins/gameobjects/shape/customprogress/CustomProgress.d.ts:24:15 - error TS2430: Interface ‘import(“…/…/node_modules/phaser3-rex-plugins/plugins/gameobjects/shape/customprogress/CustomProgress”).default.IConfig’ incorrectly extends interface ‘import(“…/…/node_modules/phaser3-rex-plugins/plugins/gameobjects/shape/customshapes/CustomShapes”).default.IConfig’.
[ng] Types of property ‘update’ are incompatible.
[ng] Type ‘((this: CustomProgress) => void) | undefined’ is not assignable to type ‘((this: CustomShapes) => void) | undefined’.
[ng] Type ‘(this: CustomProgress) => void’ is not assignable to type ‘(this: CustomShapes) => void’.
[ng] The ‘this’ types of each signature are incompatible.
[ng] Type ‘CustomShapes’ is missing the following properties from type ‘CustomProgress’: centerX, centerY, radius, value, and 7 more.
[ng]
[ng] 24 interface IConfig extends CustomShapes.IConfig {
[ng] ~~~~~~~
[ng]
[ng]
[ng]
[ng] Failed to compile.
Has anyone used rexui plugin with ionic?