The JS in ACF was completely rebuilt and given a new API. I have not been able to update some sites yet because I need to rewrite the JS in some cases. In your case acf.fields.repeater
probably no longer exists, or it has been altered. https://www.advancedcustomfields.com/resources/javascript-api/