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.

Reference Error: cordova is not defined



  • Hi,
    I am new to the Monaca platform and when I run the code
    var privatePath = cordova.file.applicationDirectory, I get the error:
    "Reference Error: cordova is not defined"
    I am developing on the Monaca IDE and have activated the cordova plugin as well.
    Can someone help me solve this please?
    Thank you.