Cannot read property 'update' of undefined

Hello. Faced such a problem. When you re-enter one of the scenes, an error occurs:

playcanvas-stable.dbg.js:21944 Uncaught TypeError: Cannot read property ‘update’ of undefined
at Func._onUpdate (playcanvas-stable.dbg.js:21944)
at Func._callComponentMethod (playcanvas-stable.dbg.js:22173)
at Func._onUpdate (playcanvas-stable.dbg.js:22183)
at (playcanvas-stable.dbg.js:608)
at Function.update (playcanvas-stable.dbg.js:19976)
at Application.update (playcanvas-stable.dbg.js:19542)
at playcanvas-stable.dbg.js:19879

The search for a solution did not lead to success. Has anyone ever encountered such a thing?

Without seeing the project, my guess is that you are referencing a ‘deleted’/destroyed entity.

Thank you. We will check all objects and calls.