-
Notifications
You must be signed in to change notification settings - Fork 2
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
Uncaught TypeError: this.timer.unref is not a function #31
Comments
It should work because the CI is passing. You might run into this issue jestjs/jest#1909 and please check your environment in a pure node like this: discordjs/RPC#22 |
Ok. Thank you for your advice. It of course works in pure node, but I reckon somehow the setTimeout function in the scope of my app is not the native one (since it doesn't have the unref method). So far I couldn't find a way to force it. |
I confirm I have the same problem than @xavier-breuil. |
This is also an issue when running under Electron/React when the watchdog timer(s) are in an imported library. |
@davelnewton thanks for report that. Could you please provide a minimum runnable code to show your problem? I'd like to fix this if I can understand the situation we are facing to. |
Not trivially, but I was using it in a module that was included in an Electron (via electron-forge) project. The solution is as @xavier-breuil states: it's using the standard browser-ish timers which do not have the I removed the library and did essentially the same thing as the library using the NodeJS |
Should be fixed with Thank you very much for the reporting! |
Hello,
I have some issue feeding the dog.
I just paste the example given and get the following error then after one seconds the dog goes to sleep (we can see the log in the console):
I just started a project with electron. Basically I cloned the electron boilerplate (https://github.com/szwacz/electron-boilerplate), install watchdog, copy and paste the example of this repos and launched it.
My configuration is:
Do you have any idea where this may come from?
Thank you
The text was updated successfully, but these errors were encountered: