MZ Upgrading MZ's PIXI past 5.25

Apparently a lot of serious lag and memory holes are fixed after PIXI 5.25, however attempting to upgrade past it yields the following error....

pixi_error_rmmz_beyond_2_5.jpg


So before I start really getting into this.. Does anybody already have the fix for this particular problem?
would also be interested in help here on this.
So here's the only change mentioning castToBaseTexture.....
Original:
JavaScript:
renderTexture = renderTexture.baseTexture || renderTexture;

New:
JavaScript:
renderTexture = renderTexture.castToBaseTexture() as BaseRenderTexture;

....in the update notes from 5.24 to 5.30 for those wish to help investigate the problem.

Original thread: https://forums.rpgmakerweb.com/threads/upgrading-mzs-pixi-past-5-25.131875/