WP Smush Pro JS error on Library or settings page


I’m getting a JS error when on the Library or WP Smush settings pages:

Uncaught TypeError: Cannot read property 'view' of undefined

This is causing both the bulk smush and the manual status updates to break.

I’ve tried enabling other themes and the error does go away. Do you know why a theme could be causing this error?