Jump to content
McKay Development

TypeError: setInterval(...).unref is not a function


sanchoys

Recommended Posts

This is a known incompatibility in Electron that the Electron team has acknowledged and refused to fix.

Package maintainers cannot consider all possible incompatibilities in all possible runtime environments; you'd do well to only use third-party modules in your main process rather than in a Node-enabled renderer process. You're ultimately trying to run code written for Node.js in an environment that's only mostly API-compatible with Node.js.

I'll try to add a workaround when I get to it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...