Backend Code only runs in Preview

I’m stumped. :relieved:
I’ve come to realise the issue is about more than just a specific function or even a specific backend module.

With the browser console open (tested in Firefox & Edge) I get the same error when ANY dashboard page is loading. These are custom dashboard pages I created in the editor of course. Not all of these pages import a backend module