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

thing.on is not a function #3

Open
ccollins1544 opened this issue Nov 4, 2021 · 0 comments
Open

thing.on is not a function #3

ccollins1544 opened this issue Nov 4, 2021 · 0 comments

Comments

@ccollins1544
Copy link

I can't get your sample code on the readme to run at all. I keep getting this,

TypeError: thing.on is not a function
    at D:\repos\eredocs\node_modules\imap-promise\ImapPromise.js:39:9
    at collect_events (D:\repos\eredocs\node_modules\imap-promise\ImapPromise.js:37:9)
    at ImapPromises.getMailAsync (D:\repos\eredocs\node_modules\imap-promise\ImapPromise.js:35:50)
    at D:\repos\eredocs\utils\ImapEmail.js:128:17
From previous event:
    at readEmailImap (D:\repos\eredocs\utils\ImapEmail.js:125:6)
    at D:\repos\eredocs\resources\imap_start.js:39:26
    at Object.<anonymous> (D:\repos\eredocs\resources\imap_start.js:43:5)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47 +299ms
Oops: thing.on is not a function
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