The error was using module.export instead of module.exports