You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been encountering random "soft crashes" of my simple react-yue app. The app started to crash once I added require("jsdom") to it. I assumed that something in jsdom interferes with node-gui and spent more than 3 days looking for a cause. Eventually I realized it's not the content of the required dependency, but its size.
Now the app runs, but no window appears. Putting require("./numbers-large.js"); in a setTimeout causes the window to appear, and then disappear after a short amount of time.
The app doesn't crash. The window just disappears.
EDIT: on some occasions the window doesn't disappear immediately, but after around 8 seconds.
The text was updated successfully, but these errors were encountered:
I've been encountering random "soft crashes" of my simple react-yue app. The app started to crash once I added
require("jsdom")
to it. I assumed that something injsdom
interferes withnode-gui
and spent more than 3 days looking for a cause. Eventually I realized it's not the content of the required dependency, but its size.How to reproduce
I'll use react-yue-app as the simplest example.
After cloning the repo, running the app as it is works just fine.
Then let's generate a large JSON file:
and then add
to the app code.
Now the app runs, but no window appears. Putting
require("./numbers-large.js");
in asetTimeout
causes the window to appear, and then disappear after a short amount of time.The app doesn't crash. The window just disappears.
EDIT: on some occasions the window doesn't disappear immediately, but after around 8 seconds.
The text was updated successfully, but these errors were encountered: