Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
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