-
-
Notifications
You must be signed in to change notification settings - Fork 525
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 pnpm #2633
Comments
any ETA? |
Not only import but also the packaging is not working. This is needed to be fixed. It's impossible to use in Monorepos for now :( |
Try the solution from electron-builder: https://www.electron.build/index.html#note-for-pnpm My .npmrc file in the project root looks so:
|
Not work.Error info:
Env: |
I will investigate this issue in the next few days and would prioritize investigating: whether forge can work with
|
This isn't just a case of supporting
Galactus depends on flora-colossus so if support is added correctly in the former galactus may Just Work™️ Then there's the stuff in this repository, most of which I believe is tied into the |
There's two aspects for pnpm support.
Sounds like (1) can be resolved if flora-colossus is fixed, can you confirm @MarshallOfSound? Could there be an alternate library we can move to that uses the standard node resolution algorithm (as that should just work, no?). For (2) - that's more tricky but considering it doesn't even support npm workspaces by default we have more problems. I'd say considering it has a workaround (implementing your own packageAfterCopy with prune: false) you could do the same for pnpm. Is there any appetite from the core Electron team to look at both pnpm + workspace (for any package manger) support? |
I think @BlackHole1 (who is also a pnpm maintainer) was investigating this issue. Not sure where we ended up! |
Thank you for the reminder, @erickzhao! I apologize for delaying this task 🙇♂️. Recently, I've been putting my energy into entrepreneurship-related matters and haven't had any extra time to investigate this task, leading me to forget about it 🫨. I will complete my current work as soon as possible to have additional time to conduct the investigation. |
what is missing here? |
We currently have an open PR attached to this issue @sibelius! If you have any input to give as a pnpm user, would be appreciated. |
@erickzhao Which PR is it? What needs to be done still on it? |
I assume this one? Although it seems the initial author randomly closed it? #3351 cc @erickzhao |
Is it possible to modify some settings to prevent electron-forge from bundling dependencies, and instead manually bundle dependencies using esbuild or webpack, thereby avoiding dependence on any packages in node_modules? |
@LZQCN You can temporarily bypass this issue by configuring pnpm. electron-userland/electron-builder#6289 (comment) |
I did it. see the monorepos project ai-zen/live2d-copilot. I use
|
👀 |
I use pnpm to install vue and other deps. Too many deps in edit: Changing line 66 in file pnpm just took 6 seconds. |
When I So I build an Electron scaffold with PNPM 9: idea2app/Electron-Parcel-PNPM.tsx#1 |
Any news? |
I think #3574 is the candidate PR moving forward but it will require a thorough review and I think is currently blocked on failing CI. Please follow along there for progress! Since most maintainers are not PNPM users, we want to be careful with our approach to merging the code. In particular, Electron's approach to packaging applications assumes that Thanks for your patience, everyone. 🙇 |
Thank you for the update and your maintenance which is voluntary.
…On Tue., May 21, 2024, 11:21 a.m. Erick Zhao, ***@***.***> wrote:
I think #3574 <#3574> is the
candidate PR moving forward but it will require a thorough review and I
think is currently blocked on failing CI. Please follow along there for
progress!
Since most maintainers are not PNPM users, we want to be careful with our
approach to merging the code. In particular, Electron's approach to
packaging applications assumes that node_modules are stored on disk in
the traditional npm format, and things might break in subtle ways when
using PNPM's symlink model.
Thanks for your patience, everyone. 🙇
—
Reply to this email directly, view it on GitHub
<#2633 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZV3O722XK4SPVG5WKG2QDZDOGBLAVCNFSM5JRNV57KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJSGMYTQOJRGE3Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Any updates? |
Not much to update here that I didn't already mention on the PR. I haven't had time to work on this and it doesn't look like I will have much time going forward. I picked up where the previous PR left off, made a small amount of progress. I was testing some more changes locally including fixes for the slow tests which have some issues in their current state. I updated the PR with these - apart from that, someone who is familiar with the codebase should probably take a look at this. I suspect we should fix the dependencies ( |
I've been converting In case it helps anyone, I gained limited success with bundling and also |
This comment has been minimized.
This comment has been minimized.
am waiting for....... |
Has anyone tried uninstalling |
|
i'm here with ya'll! |
Pre-flight checklist
Problem description
Using pnpm does not seem to work with electron-forge. An error is thrown when executing
pnpx electron-forge import
and I do not see any mention of pnpm in the repository and docs.It would be nice if it worked as pnpm is becoming more and more popular.
Proposed solution
Allow pnpm to work and show working in docs along npm and yarn.
Alternatives considered
npm and yarn
Additional information
No response
The text was updated successfully, but these errors were encountered: