(property) fill: string
Argument of type '{ fontSize: string; fill: string; }' is not assignable to parameter of type 'TextStyle'.
Object literal may only specify known properties, and 'fill' does not exist in type 'TextStyle'.ts(2345)
export class GameScene extends Phaser.Scene {
cursors: Phaser.Types.Input.Keyboard.CursorKeys;
platforms: Phaser.Physics.Arcade.StaticGroup;
player: Phaser.Physics.Arcade.Sprite;
scoreText: Phaser.GameObjects.Text; // I try to set it any, but not work
constructor() {
super({ key: 'game' });
}
.......
create() {
this.scoreText = this.add.text(16, 16, 'score: 0', { fontSize: '32px', fill: "#000" }); //error in fill: "#000"
}
......
But Finally
I find that solution that downgrade my project to ionic 5
“@ionic-native/core”: “^5.0.7”,
“@ionic-native/splash-screen”: “^5.0.0”,
“@ionic-native/status-bar”: “^5.0.0”,
It work fine now…
Is it possible to solve (property) fill: string. without downgrade
or i have missing something setting?? Thank you very much