-
Notifications
You must be signed in to change notification settings - Fork 6
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
Electron - Cannot bundle worker code #20
Comments
Hey @alfredalfie123! Can you share the code where you spawn the worker? |
Hi @andywer, after trying with latest boilerplate code, It show another warning when building:
When building finish, I try to open the release file, and then I found out this error:
Here is the repo which reproduce above one: https://github.com/alfredalfie123/test_worker |
I think I know what's going on: threads.js checks if Now webpack chokes on the Can you try to monkey-patch the If that works we can try to fix it permanently in threads.js. |
@andywer After patching
And when running release, it show error like this:
|
Sorry for the late response! I hope you haven’t given up yet. Did you configure your Electron build pipeline as documented here: https://threads.js.org/getting-started#electron? |
Any updates on this, @alfredalfie123? |
@andywer sorry for late reply, after bundlinlg threadjs to asar it works perfectly. Thank you for great library |
Hi!
I am building an electron application using electron-react-boilerplate.
In this boilerplate, I am trying to use threadsjs.
When testing in dev mode everything works great, but unfortunately when trying to pack the app, I am getting the following warning:
In webpack.config.main.prod.babel.js, I follow your guide to use the plugins:
Could you please help me to solve this issue?
Best regards.
The text was updated successfully, but these errors were encountered: