IonicaBizau / github-contributions

:octocat: A tool that generates a repository which being pushed into your GitHub account creates a nice contributions calendar.
MIT License
1.33k stars 116 forks source link

Cannot read property 'date' of undefined #67

Closed yutiansut closed 5 years ago

yutiansut commented 7 years ago

Listening on localhost:9000 C:\Strategy\github-contributions\lib\contributions\calendar.js:101 options.dates.push(year[cPoint.x - 1][cPoint.y - 1].date); ^

TypeError: Cannot read property 'date' of undefined at module.exports (C:\Strategy\github-contributions\lib\contributions\calendar.js:101:60) at module.exports (C:\Strategy\github-contributions\lib\contributions\index.js:48:5) at Socket. (C:\Strategy\github-contributions\lib\client_handler\index.js:73:9) at emitOne (events.js:96:13) at Socket.emit (events.js:191:7) at C:\Strategy\github-contributions\node_modules\socket.io\lib\socket.js:503:12 at _combinedTickCallback (internal/process/next_tick.js:73:7) at process._tickDomainCallback (internal/process/next_tick.js:128:9)

npm ERR! Windows_NT 10.0.16193 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start" npm ERR! node v7.10.0 npm ERR! npm v4.2.0 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! gh-contributions@3.0.6 start: node ./lib/server.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the gh-contributions@3.0.6 start script 'node ./lib/server.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the gh-contributions package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node ./lib/server.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs gh-contributions npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls gh-contributions npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\yutia\AppData\Roaming\npm-cache_logs\2017-05-28T04_11_17_465Z-debug.log