Cordova.plugins.diagnostic not working

Hi all,
I have installed diagnostic plugin in my app .It was successfully installed but when i taking build in cloud ionic it become failed.
I added the following in config.xml


 <plugin name="cordova.plugins.diagnostic" source="npm"/>