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

[Help] Hot module reloading keep opening new process of electron #447

Open
0xGoenka opened this issue Dec 5, 2023 · 1 comment
Open
Labels
help wanted Extra attention is needed

Comments

@0xGoenka
Copy link

0xGoenka commented Dec 5, 2023

Hot module reloading keep opening new process of electron when I save change in the main/index.ts

I got few class importer and initialized in the main/index.ts because I need them to use node API

But when I edit them and save this create me a new window of electron, it seems logic, but I can't find a way to fix this :/

I'm really new to electron only 2 days in.

I'm running on Mac Os and BrowserWindow.getAllWindows().length keep returning me 1

Screenshot 2023-12-05 at 19 14 42

Help would be greatly appreciated <3

@0xGoenka 0xGoenka added the help wanted Extra attention is needed label Dec 5, 2023
@caoxiemeihao
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants