On line 22, exports should be changed to module.exports. One possible reason is that the exports variable looks up to find the module object. Therefore, if we only have exports, the compiler will think we are trying to create a local exports variable.
On line 22, exports should be changed to module.exports. One possible reason is that the exports variable looks up to find the module object. Therefore, if we only have exports, the compiler will think we are trying to create a local exports variable.