-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Support for sibling packages (lerna + yarn workspaces) #2222
Comments
Sample project please :) |
Here it is: https://github.com/PaulLeCam/electron-builder-workspaces I think the main issue comes from this dependency that is correctly resolved by lerna/yarn, but not by electron-builder: https://github.com/PaulLeCam/electron-builder-workspaces/blob/master/packages/app-desktop/package.json#L14 |
Was hoping for b0fa409 to fix this, but still not working for me. Checked out the sample project, same behavior. The dependencies in the packages are missing, no node_modules folder present in there, only in the root directory. Any ideas? |
I will try to find time to investigate this issue soon. |
Thanks, found out my yarn was overwritten by an old version, I am now on yarn 1.2.1. Tuned out my old yarn did not support workspaces yet. Will investigate further, but looks like sub-dependencies of dependencies are missing in the bundles. Running electron directly from within my lerna package works fine. Tried it with module hoisting enabled and disabled. |
Okay, the repo of @PaulLeCam has the same issue:
Running electron from within the Steps to reproduce:
|
Same issue for us in nteract, PR to introduce hoisting back in and upgrade electron-builder: nteract/nteract#2102 We'd also love to switch to yarn workspaces, though we're running into issues with it and electron builder there too. |
Does it make sense to mention also the use case of the
Currently, I have loads of missing dependencies by using such a pattern. Whether it should be supported or not is a good question, but if it is not, at least it would be nice if there was a heads-up warning... |
I'm experiencing the same issues with How can we help to get this issue resolved? |
I solved this for the moment by bundling first with Webpack. Webpack can correctly resolve the dependencies, so loading in the bundled JS and setting |
This issue will be addressed on this weekends (as we have sample project :)). |
@develar Thanks for investigating! Is there anything we can help to track this down? |
Awesome @develar thx :) |
Hi, following the support for hoisted node_modules in lerna + yarn workspaces in v19.39.0, I'm wondering if it would also be possible to support sibling packages as defined in the lerna.json
packages
config and/or the root package.jsonworkspaces
please?I currently have a setup where my electron app is using sibling packages and electron-builder throws the "Error: Unresolved node modules" error for these dependencies.
Thanks!
The text was updated successfully, but these errors were encountered: