How to use xml2js


#1

I am trying to include xml2js in my project and follow the instruction of this. But it is not working, this gives this error
XMLElement.js:4 Uncaught TypeError: Cannot read property 'prototype' of undefined

Ionic 2.1.0
Node 6.7.0
npm 3.10.8
cordova 6.3.1