somehow this "require" still executed and error because file mod.json does not exist, the condition should not have met and should not get into the "if" block:
const a = 1;
if(a === 2){
const mod = require('./scripts/mod.json');
...
}
Any help and suggestion would be appreciated, thanks!