playcanvas / playcanvas-tween

A tween library for PlayCanvas
MIT License
59 stars 45 forks source link

"Uncaught TypeError: this.easing is not a function" when project is opened #31

Open andrew-welsh opened 2 years ago

andrew-welsh commented 2 years ago

We've been running into an issue where early in our project tween.js will throw this error. The type of tween doesn't seem to have an impact on whether or not it is caused, and it happens from different points in the project at different times, but only ever once. Tweening in the project continues to work fine after this error is thrown. Directly before the error is called this.easing is equal to 1, but before and after this it is equal to the function that it should be. Any ideas why this might be happening?

Uncaught TypeError: this.easing is not a function update https://launch.playcanvas.com/api/assets/files/Scripts/tween.js?id=62419280&branchId=b564d77a-3d99-4d47-be12-b5442499d0bb:368 update https://launch.playcanvas.com/api/assets/files/Scripts/tween.js?id=62419280&branchId=b564d77a-3d99-4d47-be12-b5442499d0bb:24 addTweenManager https://launch.playcanvas.com/api/assets/files/Scripts/tween.js?id=62419280&branchId=b564d77a-3d99-4d47-be12-b5442499d0bb:675 fire https://launch.playcanvas.com/editor/scene/js/engine/playcanvas.dbg.js?version=1.52.6:759 update https://launch.playcanvas.com/editor/scene/js/engine/playcanvas.dbg.js?version=1.52.6:72251 makeTick https://launch.playcanvas.com/editor/scene/js/engine/playcanvas.dbg.js?version=1.52.6:72834 tween.js:368:26 image

yaustar commented 2 years ago

Do you have an example project that can reproduce the issue?

andrew-welsh commented 2 years ago

Currently we only have this project as we've been hard at work on it, but I can attempt to recreate it in another project later