Ensure that the global module object is correctly initialized with module.exports