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

hot reloading about can't find module main entry #687

Open
4 tasks done
jingpengju391 opened this issue Dec 26, 2024 · 1 comment
Open
4 tasks done

hot reloading about can't find module main entry #687

jingpengju391 opened this issue Dec 26, 2024 · 1 comment

Comments

@jingpengju391
Copy link

jingpengju391 commented Dec 26, 2024

Describe the bug

when hot reloading, show dialog error Unable to find Electron app at xxx path ( can't find module xxx please verify that the package,json has a valid "main" entry ) after xx ms hide dialog and reload success.

maybe execute first reloading after build out main file

微信图片_20241226111735

Electron-Vite Version

2.3.0

Electron Version

31.3.1

Vite Version

5.3.1

Validations

@jingpengju391
Copy link
Author

jingpengju391 commented Dec 26, 2024

currently, bypassed the build time by setting watch.buildDelay, and it works quite effectively, but it doesn't feel like a reliable solution.

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

1 participant