I am unable to build my ionic 3 project after adding “Diagnostic” plugin.
There is a transpile error:
typescript: .....app/plugins/cordova.plugins.diagnostic/cordova.plugins.diagnostic.d.ts, line: 6
Cannot find type definition file for 'cordova'.
L5: * "Dangerous" permissions that need to be requested at run-time (Android 6.0/API 23 and above)
L6: * See http://developer.android.com/guide/topics/security/permissions.html#perm-groups
L7: * @type {Object}
How can I resolve this problem? Following is the version information:
Can you please send the output of ionic info, your app.module.ts, your package.json dependencies, how they are now, and some more information of the error, if there are some lines before and after what you posted about it.
Thanks but that’s a lot of info and i don’t think it would be worth wasting our time on figuring out the versions! I have dropped this plugin and using BackgroundGeolocation plugin as it provides the same methods for location and it is working fine.