Open UndarkAido opened 2 years ago
I cannot reproduce it. Can you share your project?
(node:29669) UnhandledPromiseRejectionWarning: TypeError: input.on is not a function
at new Interface (readline.js:189:11)
at Object.createInterface (readline.js:69:10)
at SysTray.<anonymous> (/Users/vimaldas/node-dev/aws-uploader/node_modules/systray2/index.js:296:61)
at step (/Users/vimaldas/node-dev/aws-uploader/node_modules/systray2/index.js:52:23)
at Object.next (/Users/vimaldas/node-dev/aws-uploader/node_modules/systray2/index.js:33:53)
at /Users/vimaldas/node-dev/aws-uploader/node_modules/systray2/index.js:27:71
at new Promise (<anonymous>)
at __awaiter (/Users/vimaldas/node-dev/aws-uploader/node_modules/systray2/index.js:23:12)
at /Users/vimaldas/node-dev/aws-uploader/node_modules/systray2/index.js:285:99
at new Promise (<anonymous>)
(node:29669) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:29669) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```
I am on MacOS Catalina and just tried the code from the example
Systray version is 2.1.4
@vimal Are you running the program from a shell, which supports standard output stream?
I was running it through Webstorm on Windows, I deleted the project already. Could try to recreate it.
My project is just the example except that I had to make to constructor
new SysTray.default