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
Node modules are not installed when using Yarn workspaces #774
Comments
👋 Thanks for opening your first issue here! If you have a question about using Electron Packager, read the support docs. If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. Development and issue triage is community-driven, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines. |
In order to debug your problem further, we need a minimal testcase to reproduce your problem. Using the |
@malept done! |
i came across with the same issue V_V |
@martijnthe what sort of changes are you proposing? I wonder if the best way to fix this is to have an Electron Packager plugin that runs |
@malept that could work, will try. Thanks. |
I am having a similar issue but without yarn. In my instance I am using stylus and pug (which are css and html pre-processors). I use gulp to build each of these into a dist folder as well as copy the package.json file into the dist as well. The reason I do this is because there are different builds that need to be done. When I run My proposal would be that |
@brtthomp you have a different use case than the issue summary.
Yes, those are your two options, given the current state of your build system. I think that traversing parent directories to find a |
@malept Thanks for the update. |
I'm going to close this since I described a workaround in #774 (comment). |
Please describe your issue:
It seems like
electron-packager
doesn't play well with npm packages that have been hoisted to a node_modules parent folder. Is that by design? We're using yarn workspaces and npm packages get hoisted automatically to the root of the mono repo. Running electron "from source" works fine, because node's module resolution also looks innode_modules
folder of parent folders.Would you be interested in accepting a patch to solve this issue? Perhaps a new option key could be introduced for this?
Related issues:
electron-packager
is not bundling the Node modules listed in dependencies #527Console output when you run electron-packager with the environment variable
DEBUG=electron-packager
. Please include the stack trace if one exists.What command line arguments are you passing? Alternatively, if you are using the API, what
parameters are you passing to the
packager()
function?Please provide either a failing minimal testcase (with a link to the code) or detailed steps to
reproduce your problem. Using electron-quick-start
is a good starting point.
https://github.com/martijnthe/electron-quick-start/tree/repro-electron-packager-issue-774
To repro:
The text was updated successfully, but these errors were encountered: