-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
No renderer process in the @electron-forge/plugin-webpack throws error #2859
Comments
Any update on this? Have the same issue. Only 'solution' is to have stub files. |
The same problem, in my project, both the html and js of the renderer are generated by umi, so |
Just keep them and don't do anything with them, you can leave them empty as long as you don't delete the file. |
Electron documentation strongly suggest electron-forge to package and distribute the application, but electron forge has very poor documentation. I'm making a huge effort understanding how to configure properly electron-forge for an application simply render an online page. Any updates? |
@greenbeam-ita are you stuck on anything in particular? I'm not sure what you're referring to in relation to this issue. There's a linked PR that landed with associated documentation. |
I've got an electron application that works with an online application, I simply append a preload, I don't need renderer in my webpack configuration. There's no way to start webpack plugin without renderer configuration. I also have another issue related with arch and native node dependencies, maybe you have another topic to suggest: |
Hmm, we could definitely improve the documentation around that. I think I forgot to expand the docs! But see #2950 for a preload-only renderer entry point. Your remotely-loaded URL will still be running in a renderer process, so you can't avoid having any renderer config if you're loading a BrowserWindow.
I'm not 100% sure about this but it sounds like your native dependency doesn't have an arm64 version and you're running on an Apple Silicon Mac. |
Pre-flight checklist
Electron Forge version
6.0.0-beta.63
Electron version
18.0.2
Operating system
macOs 12.0.3
Last known working Electron Forge version
No response
Expected behavior
I want to use electron without the renderer process, after tweaking the plugin-webpack config the only thing worked was:
Then I wanted to add the preload.ts script, and couldn't get rid of any of the entryPoints:
Using electron without a renderer process should be a use case that should be contemplated.
Actual behavior
Any change did (remove the line with the index.html or remove the "js"), this error arise on
npm run start
:Steps to reproduce
Start the ts-webpack template and try to get rid of the boilerplate renderer bits, and adding the config for preload.
fails
fails
also fails
Additional information
No response
The text was updated successfully, but these errors were encountered: