Hello, I am wondering if there is a way to see what version of phaser I am using. When I am trying to use scaling options that I am copying from a tutorial, I get the error ‘Cannot read properties of undefined (reading ‘FIT’)’ . When i have googled this message, someone said to make sure, it is an up to date version of phaser. I downloaded phaser from the github 3 weeks ago, so I assume this is a new version?
Phaser.VERSION
You can console.log that from your project, or just type it right into the dev console of your browser since Phaser saves itself to a global variable “Phaser”.
More likely it’s the tutorial that’s out of date… There haven’t been MAJOR changes to Phaser 3 in quite some time. Can you post either the link to the tutorial or a snippet of your code?