Turns out I am having a different issue that is breaking the page.
But that function is still having an error.
in acf-field-groups.js addProLocations function.
ProLocationTypes is null but its object type is still an object. So the Object.entries function is triggering an error.