In my server.js file,
global.__base = __dirname;
require(__base + '/app/init/cronjob');
These two properties are defined. It works fine.
While inside cronjob.js,
Upon using __base for anything, it says that it is undefined.
The program itself runs fine but the vscode debugger has problem finding __base, how do I tackle this?