Dmnjs working good in local and when pushed to server throwing an error

Hi,
I use angular 4 along with webpack for my project. I got my dmn modeler working fine in my local and when pushed to some server like DEV I am getting an error saying “text.split is not a function”. Can anyone help me out with this issue please.

Thanks,
Harish