phaserjs / phaser-editor-issues

Phaser Editor's bug tracker.
0 stars 0 forks source link

Phaser Editor 4.6 Text GameObject setStyle codegen error #47

Closed cjimison closed 1 week ago

cjimison commented 1 week ago

Version

Description

I recently upgrade to Phaser 4.6.0 on Mac and it looks like the codegen for text has a bug in it.

VSN 4.5.1: lblText.setStyle({ ..., "shadow.offsetX": -1, "shadow.offsetY": -1, "shadow.stroke": true, "shadow.fill": true });

VSN 4.6.0: lblText.setStyle({ ..., shadow.offsetX: -1, shadow.offsetY: -1, shadow.stroke: true, shadow.fill: true });

Since the quotes are no longer present it is causing errors in the browser.

Error Text: [plugin:vite:esbuild] Transform failed with 1 error: "ERROR: Expected "}" but found ".""

Questions:

I upgraded from the 4.5.1 version. Is there some other packages/etc I should update as part of my editor upgrade process?

Did I miss some setting or option I need to in the editor set?

Possible solution

Manually adding quotes to all the shadow.xyz fixed the build errors, but those changes will be overwritten the next time I modify the Prefab/Scene in editor.

PhaserEditor2D commented 1 week ago

Thanks! We are working on it. Will release a new version in a few hours.

PhaserEditor2D commented 1 week ago

Fixed. You can get v4.6.1 in the Phaser.io downloads page.