I am still getting the same error, even after excluding wp-content/plugins/wp-smushit from JS optimisation.
Actually, even if I disable JS optimisation, the problems persists.
Any idea why this is happening? I am using Smush for image optimisation and lazy load.
—–EDIT—–
It seems that Autoptimize CriticalCSS.com Power-Up is causing the conflicts, since deactivating it remove all JS errors I was having.
Any idea how to prevent this from happening?