Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

annot read property 'map' of undefined #1

Open
smartcatdev opened this issue Dec 7, 2017 · 0 comments
Open

annot read property 'map' of undefined #1

smartcatdev opened this issue Dec 7, 2017 · 0 comments

Comments

@smartcatdev
Copy link

Listing channels ...
/usr/local/lib/node_modules/slack-history-cleaner/index.js:28
        const userMap = new Map(data.users.map(u=>[u.id, u.name]));
                                          ^

TypeError: Cannot read property 'map' of undefined
    at Request.request [as _callback] (/usr/local/lib/node_modules/slack-history-cleaner/index.js:28:43)
    at Request.self.callback (/usr/local/lib/node_modules/slack-history-cleaner/node_modules/request/request.js:186:22)
    at emitTwo (events.js:106:13)
    at Request.emit (events.js:191:7)
    at Request.<anonymous> (/usr/local/lib/node_modules/slack-history-cleaner/node_modules/request/request.js:1163:10)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:188:7)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/slack-history-cleaner/node_modules/request/request.js:1085:12)
    at IncomingMessage.g (events.js:286:16)
    at emitNone (events.js:91:20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant