-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Bug?]: electron-builder couldn't be built successfully #4804
Comments
Can you please provide the logs? |
Thanks RDIL, I had run yarn again, still have problem, @RDIL PS D:\Project\electron\electron-quick-start> yarn Here is the log file
And I have look at electron-userland/electron-builder#3984 (comment), still can't know how to fix this, and help others avoid this problem. I have write the same issue in electron-builder, hope we can fix the problem. electron-userland/electron-builder#7106 |
I don't think that you can use PnP with Electron, you may need to enable the node modules linker. |
Thanks for help, I am graceful. I have fix this problem and will write to electron-builder's readme. This is because of yarn 3 use PnP by default, but electron-builder still need node-modules.
will declare to use node-modules instead of PnP. |
may I know which folder is the folder you are referring to? |
@vintage88 I list project folder here:
|
Well, the real fix would be to make electron-builder compatible with PnP... |
Self-service
Describe the bug
electron-builder can be build by npm(now), and the old yarn2 (last year), but when I use the new yarn3, it can't be built the deps.
I use the Electron and change the default builder package to electron-builder, it will be error when using yarn3:
https://github.com/electron/electron-quick-start
add those script in package.json:
"make": "electron-builder",
"postinstall": "electron-builder install-app-deps",
"postuninstall": "electron-builder install-app-deps"
and add
"electron-builder": "latest"
to devDependencies,then, use the
yarn
to download the deps, it will error.ps: If you want to test all, you can run
yarn make
to build exe file.To reproduce
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: