So we ran into a problem while developing an app for Phonegap. To be more precise, cordova doesn't detect cordova_lib, as it's displayed here:
`var cordova_lib = require('cordova-lib');`
We have no idea why it's happening, because we double checked the directory and all the necessary files are in the right places. Here's the error code:
cordova.js:23 Uncaught ReferenceError: require is not defined
at cordova.js:23
Cordova was manually added to phonegap through node.js' CLI.
I'd like to also add that it's our first time using phonegap.