beginner-corp / slack

:tada:✨ Slack API client for Node and browsers.

Home Page:https://www.npmjs.com/package/slack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`useElectronNet: true` doesn't work

kyoh86 opened this issue · comments

commented
    const slack = new Slack({useElectronNet: true})
    slack.oauth.access(cred).then(console.log);
$ yarn start
yarn run v1.13.0
$ electron .
(node:2571) UnhandledPromiseRejectionWarning: Error: options.useElectronNet.request is not a functi
on

WHY??

appears to fail here https://github.com/smallwins/slack/blob/master/src/_exec-electron.js#L99

maybe electron changed its interface? (I'm not an electron dev so I can't say but more investigation would be appreciated!)

commented

❗️2ca805f#diff-0730bb7c2e8f9ea2438b52e419dd86c9R86

Could it be this is documentation error?

closing due to inactivity / lack of steps to repro (feel free to reopen if you'd like to continue to address)