-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Version
- Phaser Editor Version: 4.11.2
- Operating System: macOS Sequoia 15.3
- Web Browser and version: Chrome 134.0.6998.166
Description
In a TypeScript project, if you create a brand new Scene or Prefab file, and then open the related .ts file, there is an uncaught error being reported in the developer console. This error results in the Intellisense not working properly in these files.
Example of intellisense error in the .ts files when opened in the Editor:
Example of the error shown in the developer console when these files are opened:
If you reload the Editor, and try to re-open these files, there error goes away and the intellisense issue no longer occurs.
Steps to reproduce:
- create a new Phaser Editor project and use the Vite TypeScript project template as a base
- install the project dependencies when prompted
- after project is created and loaded, create a new Phaser.Scene file and attempt to open the related
.tsfile - you should see the intellisense error and error in the developer console
- create a new Prefab file and attempt to open the related
.tsfile, and you should see the same error
Possible solution
For a workaround, you can do View -> Reload, or View -> Force Reload to reload the editor (or use the shortcut), and when you open the .ts files, the issue does not occur.
Metadata
Metadata
Assignees
Labels
No labels