Cannot find module “cordova/exec” in ionic 2

Hello everyone

I am trying to develop a project in typescript, but for it i need to run a library in javascript, the link for the library is that

When i try to run this library in with my code, the ionic 2 return the error above. I am trying to solve it per days, and already pass for all the integration javascript and typescript tutorials in the google. Would someone help me to run this library?

I already try to use the command ‘npm install --save cordova’, this created all the cordova folders, but wasn’t able to create exec.

My codes follow bellow:


import { Component } from ‘@angular/core’;
import { NavController } from ‘ionic-angular’;
import { GrabbaProxcard } from ‘./com.grabba.cordova.plugin/www/grabba’;

declare var cordova: any;

Generated class for the GuardaCodigo page.

See for more info on
Ionic pages and navigation.
selector: ‘page-guarda-codigo’,
templateUrl: ‘guarda-codigo.html’
export class GuardaCodigoPage {

constructor(public nav: NavController) {
function acessaGrabba(value: number){
let proxcard = new GrabbaProxcard();

ionViewDidLoad() {
console.log(‘ionViewDidLoad GuardaCodigoPage’);

Someone could help me please, i really need to solve this problem. I will be very grateful. Thank you for the attention.