Have you configured Autoptimize with
Exclude scripts from Autoptimize: = jquery.js, jquery-migrate.min.js
as a minimum?
When I have problems with scripts on a particular page, I use either Firefox or Chrome browsers with the Web Developer extension to examine the page.
I look at Web Developer -> Console to get an indication of what problems there may be be with scripts on the page and then add the appropriate .js files to ‘Exclude scripts from Autoptimize’ to see if that solves the problem.
those errors typically occur when inline JS (which by default is not optimized) calls on jQuery (plugin) functions that are optimized. you’ll have to either exclude those jQuery (plugin) files from optimization (easiest/ safest) or tick the “also aggregate inline JS” but in that case you are likely to run into cache size issues (because inline JS often has changing values which bust the cache). that in turn can be fixed by excluding specific inline JS, but that can become .. burdensome 🙂
hope this helps,
frank