-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
zeromq + vite + electron also fails (MAIN PROCESS! NOT RENDERER) #690
Labels
Comments
This was referenced Dec 31, 2024
electron-vite/vite-plugin-electron#265 Hi. So it's not enough to mark zeromq as external. Both webpack and vite fail the same way with the BUILT app (i.e. the result of FYI: this is in the main process in electron. NOT THE RENDERER.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug A clear and concise description of what the bug is.
This is similar to #676
I've given up trying to get zeromq working on the renderer side and instead using ipc to hack up the required communication hooks to the renderer from the main process, and managed to get the app limping along and running (on webpack).
However, I ran into what seems to be another blocker. When I package up the app, the resulting app dies because it's unable to find zeromq. Please see webpack/webpack#18995 (reply in thread)
I then tried to get electron+vite+react + zeromq to work, and ran into a strangely similar issue.
Reproducing If possible, provide a list of commands or a code sample that
reproduces the bug that you are observing. Otherwise please describe as much as
possible in which circumstances the bug can be observed.
I followed the instructions on https://electron-vite.github.io/guide/getting-started.html
to get a electron+vite+react.
I then added zeromq and verified that the tests do run using tsx
But ran into this one:
Over on the webpack side, I managed to get past this issue (at least for the "run") by having zeromq listed as an external dependency.
but the packaged app fails.
On vite (this issue), I'm unable to get the app to run at all
Expected behavior A clear and concise description of what you expected to
happen.
I expe
Tested on
TEST-package.json
The text was updated successfully, but these errors were encountered: