electron-unhandled | Catch unhandled errors and promise rejections | Reactive Programming library
kandi X-RAY | electron-unhandled Summary
kandi X-RAY | electron-unhandled Summary
Catch unhandled errors and promise rejections in your Electron app
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of electron-unhandled
electron-unhandled Key Features
electron-unhandled Examples and Code Snippets
Community Discussions
Trending Discussions on electron-unhandled
QUESTION
I have taken over an Electron project from another developer.
The problem I am facing is that the project does not show any errors. Even including something like throw "this is an error"
does not produce any output on the main process or render process consoles or any sort of standard error popup.
I have checked to confirm that electron-unhandled
is not in use and that nothing registers 'uncaughtException'
.
What am I missing that could cause this behavior?
...ANSWER
Answered 2020-Jun-26 at 10:40Another possible reason could be stdout
and/or stderr
redirection, the problem is this could be achieved by several ways so it's hard to suggest you what to check...
If there is some child_process
call to launch a sub-process you could check the stdio
array used, or you can check if some low level operation is performed against file descriptors 1 and 2...
Hope this helps.
QUESTION
I'm trying to build an electron app and I'm using electron-unhandled in it, but when running my app it throws
...ANSWER
Answered 2019-Jun-17 at 19:25So, after @T.J.Crowder advises, I found that my electron app was running a different version of node and electron. The electron version installed was ^5.0.1
, but the issue was that I also have electron-prebuilt
installed, which has node version 6.0.5
and electron version 1.4.13
.
So this module overrides my node and electron versions. Simply uninstalling it and reinstalling electron did the trick.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install electron-unhandled
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page