Divi builder breaks due to JS error

I’m having issues with Divi builder due to a JS error when I try to edit custom post types. Can you help here?