Npm plugin works fine with ionic serve but not on android device

I am new to ionic. I want to implement gauge chart in my app. I tried with ng2-gauge-with-color-band. It works on browser but not on devices.
thanks in advance

Here is en error log:

Error {rejection: TypeError, promise: t, zone: r, task: e}
message: "Uncaught (in promise): TypeError: undefined is not a function↵TypeError: undefined is not a function↵    at Cn (file:///android_asset/www/build/vendor.js:1:29542)↵    at kn (file:///android_asset/www/build/vendor.js:1:28039)↵    at fi (file:///android_asset/www/build/vendor.js:1:42705)↵    at Di (file:///android_asset/www/build/vendor.js:1:46212)↵    at ki (file:///android_asset/www/build/vendor.js:1:45419)↵    at fi (file:///android_asset/www/build/vendor.js:1:42930)↵    at li (file:///android_asset/www/build/vendor.js:1:41506)↵    at Object.Ii [as createRootView] (file:///android_asset/www/build/vendor.js:1:48046)↵    at e.create (file:///android_asset/www/build/vendor.js:1:106913)↵    at e.create (file:///android_asset/www/build/vendor.js:1:76742)"
promise: t
rejection: TypeError
stack: (...)
get stack: function () { [native code] }
set stack: function () { [native code] }
task: e
zone: r
__proto__: d

I’m having this problem with an npm plugin I recently published. Debugging isn’t easy (and I’m using Stencil, so I’m not always sure when the bugs are mine or the framework’s). Debug the app on your phone or on an emulator, and post the log. First step is to get information.

share the error first.