Monaca Onsen UI Discord Chat Github Repo

require('cordova/exec'); does not work from JS File



  • I am trying to require the exec of cordova from a JS file like:

    var exec = require(‘cordova/exec’);

    This does not work and it says that the require is not defined, it is the first time that I am doing it with monaca.io,

    Can someone help me?

    Thanks in advance



  • Found the root cause, something was wrong in my side, this JS file had to be in the plugin directory