-
Notifications
You must be signed in to change notification settings - Fork 122
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
Error in electron-vite: Unable to load preload script because of "missing file" in chunks folder. #282
Comments
https://electron-vite.org/guide/dev.html#limitations-of-sandboxing for more details. Because the |
Is there a way I could fix this without disabling sandbox? Would it work if they were ES modules instead? |
@Uncasted You can refactor preload to bundle it into |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I'm actually having the same issue when using multiple windows with independent preload scripts that both depend on shared dependencies. In that case there's no way to configure |
Describe the bug
http://prntscr.com/WvyfJ-x97k4S
Any idea why this could be happening? The chunks folder is there and it contains the module but it says it's missing for some reason.
Electron-Vite Version
1.0.25
Electron Version
24.6.2
Vite Version
4.4.2
Validations
The text was updated successfully, but these errors were encountered: