-
-
Notifications
You must be signed in to change notification settings - Fork 541
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 Packager 18.1.2 breaks electron-forge #3443
Comments
Sorry, how can I start a new project now? |
@FrostMiKu as a workaround, you can use Yarn's Yarn: {
"resolutions": {
"@electron/packager": "18.1.1"
}
} npm: {
"overrides": {
"@electron/packager": "18.1.1"
}
} |
Fixed by electron/packager#1641, |
Are you sure the new version of electron-forge is published? I could be mistaken, but I still see 18.1.2 in package.json and when I run: I still get the error:
Am I missing something? |
@JasonLeviGoodison There was no release yet. Last release of electron-forge was 7.2.0, released 3 weeks ago. |
@JasonLeviGoodison we released a new version of Packager containing the missing file that Forge needs, so there's no new Forge version right now since Packager v18.1.3 should be enough to make Have you tried |
No, even after global uninstall it doesn't work. This isn't exactly my wheelhouse, but isnt that expected? My understanding is that this repo needs to update its version of packager, which is currently 18.1.2, but should be 18.1.3 (unless you also released a hotfix on 18.1.2). Im not 100% sure how |
This might sound weird, but do you have Yarn installed on your machine? I think there's an open issue where If you do, try running
Just in case you've reinstalled them, it's a good idea to uninstall any global versions of both Electron and Forge (and pretty much anything else from the Electron org 😄), as they can cause some weird conflicts. They are meant to be installed at the project-level, not globally.
That's correct. Forge specifies |
Thank you so much for your help! The yarn commands change didn't work, but just manually deleting Just for the record, I definitely wasn't going to keep a global install around ahah 😅 I just tried a lot of random stuff last night when having this problem in hope that something would fix it. Good to go now! |
Pre-flight checklist
Electron Forge version
7.2.0
Electron version
28.0.0
Operating system
Ubuntu 20.04 x64
Last known working Electron Forge version
7.2.0 (Same)
Expected behavior
Actual behavior
Steps to reproduce
electron-forge
Additional information
When I downgrade using
yarn add @electron/[email protected]
and doyarn start
, Electron starts. When I upgrade again usingyarn add @electron/[email protected]
and doyarn start
, the above problem appears.ls node_modules/\@electron/packager/src/targers.js
shows that the file exists.ls node_modules/\@electron/packager/
shows that thesrc/
directory no longer exists and was replaced bydist/
.The release notes of Electron Packager only mention documentation changes. But it appears the entire TypeScript rewrite #1593 was shipped crediting as "update broken doc link".
Fixes
Work with Electron Packager (issue #1673) to create a stable export in electron/packager for Electron Forge to use.
The text was updated successfully, but these errors were encountered: