Routine works in one place in experiment but not another

I have a routine in a large experiment that when I place at the beginning runs perfectly- but if I place it after other routines i get the following error
``index-size-error.ts:727 TypeError: Cannot use ‘in’ operator to search for ‘status’ in 2`

in js component it corresponds to this line

for (const thisComponent of instructions_actionsComponents) if ('status' in thisComponent) thisComponent.status = PsychoJS.Status.NOT_STARTED; return Scheduler.Event.NEXT; } }

when i copied another (working) routine into the middle of the experiment the whole screen just goes black with the following dev error

DevTools failed to load source map: Could not load content for Load canceled due to load timeout
is there something that other routines are messing up? since the routine works well in isolation and i have little js experience i haven’t been able to track the issue.

any help would be greatly appreciated!