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

setInterval().unref() is not a function #12462

Closed
NikhilMutkekar opened this issue Mar 28, 2018 · 3 comments
Closed

setInterval().unref() is not a function #12462

NikhilMutkekar opened this issue Mar 28, 2018 · 3 comments

Comments

@NikhilMutkekar
Copy link

  • Electron version: 1.4.16
  • Operating system: Windows 10

Expected behavior

Using jsreport-core to generate PDF from HTML. jsreport.init() should get initialized and render content into pdf file.

Actual behavior

jsreport.init() throws an error Unhandled rejection TypeError: setInterval(...).unref is not a function at Reporter._startReaper
Ideally running on Node.js server and web browser, It generates pdf. But same application throws error while being executed from Eelctron.

How to reproduce

@sofianguy
Copy link
Contributor

GitHub issues are for feature requests and bug reports, questions about using Electron or code assistance requests should be directed to the community or to the Slack Channel.

@NikhilMutkekar
Copy link
Author

Yes, I did so before raising it here since I dint get any response on slack channel.

@joshuapinter
Copy link

Try this:

setTimeout(function () {}).__proto__.unref = function () {}

From bugsnag/bugsnag-js#459 (comment).

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

3 participants