# TypeError: this.scale.setScreenSize is not a function

Game work with the old version 2.0.6. But they get this error after switching to 2.4.2

TypeError: this.scale.setScreenSize is not a function


any Idea how to solve this ?

Deprecated [...] ScaleManager.setScreenSize (see updateLayout)