eouia / MMM-CalendarExt

Calendar views for MagicMirror
MIT License
57 stars 18 forks source link

forRPI1 branch error #57

Closed StuartIanNaylor closed 5 years ago

StuartIanNaylor commented 5 years ago
Uncaught TypeError: nameSet.add is not a function
    at MMM-CalendarExt.js:422
    at Array.forEach (<anonymous>)
    at Class.makeIndex (MMM-CalendarExt.js:414)
    at Class.socketNotificationReceived (MMM-CalendarExt.js:581)
    at module.js:246
    at r.<anonymous> (socketclient.js:25)
    at r.emit (index.js:83)
    at r.onevent (index.js:83)
    at r.MMSocket.self.socket.onevent (socketclient.js:19)
    at r.onpacket (index.js:83)

I used git clone --single-branch --branch forRPI1 https://github.com/eouia/MMM-CalendarExt.git Just to get that branch is that incorrect? RaspberryPi0 hence RPI1

eouia commented 5 years ago

forRPI1 is not supported any more by me. Anyway, it can be fixed by modifying source line 422 of MMM-CalendarExt.js

if(e.name) nameSet.add(e.name)

to

if(e.name) nameSet.push(e.name)

But I recommend to use master branch if your node version is hight enough (^8.x).

eouia commented 5 years ago

Have you still got a problem? I'll close this issue once because there is no more feedback. You can ask me again anytime.

StuartIanNaylor commented 5 years ago

Nah apols just close :)