Closed Dynrothe closed 7 years ago
How'd you fix it?
Made this modification in the module's index.js under "active functions()". Might not be the best way to do it but it's enough for me https://pastebin.com/rp3FLayw
I think its better get the error and handle it in the main section the openweather-apis is used rather then silence return ....
How could I fix this error:
C:\Users\\Desktop\\node_modules\openweather-apis\index.js:155 return callback(err, (jsonObj.weather)[0].description); ^ TypeError: Cannot read property '0' of undefined
I get it when it can't find the cityEDIT: I fixed it myself