Error; TypeError: Cannot read properties of null (reading '_lView')

I am getting the error;

TypeError: Cannot read properties of null (reading ‘_lView’)
at ViewContainerRef.insertImpl (core.mjs:17326:31)
at ViewContainerRef.insert (core.mjs:17323:21)
at ViewContainerRef.move (core.mjs:17362:21)
at common.mjs:3144:31
at DefaultIterableDiffer.forEachOperation (core.mjs:10646:17)
at NgForOf._applyChanges (common.mjs:3132:17)
at NgForOf.ngDoCheck (common.mjs:3127:22)
at callHookInternal (core.mjs:3599:14)
at callHook (core.mjs:3630:9)
at callHooks (core.mjs:3581:17)

Not sure what it relates to, but I have a div that I can drag up and down the screen, and if I drag it too low I make it auto close. But then in browser I get this error (it still closes though).

So it works but I don’t like this error…any ideas as to what causes this? I have no idea where to look.

Providing a minimal reproduction of the issue would be helpful. Preferably a StackBlitz or a repo.

Sorry - I wouldn’t even know where to begin on this one; its part of a massive commercial project.

I just have no idea what this sort of error even refers to - if no one know I’ll have to just leave it in place or do the process of elimination.