If relevant, this on my site turned out to be caused by the Popup Maker plugin (the last one I thought it would be), which I have across a number of my sites! Was on the latest version of that plugin as well, but throwing that error and also blocking all my CSS from loading.