-
-
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
Builds failing after upgrading to electron-builder 24.x #7494
Comments
Oomph, I can take a look at this asap. Surprised it wasn't caught in any of the alpha versions. Would you be willing to put together a minimum reproducible repo for this? That'd help immensely |
Getting the same here, latest electron with latest electron-builder. |
I need more info to work with here. Please post build logs with env var Are your projects using native modules? |
same on my end, but I don't think it's related to
Downgrading to |
@mmaietta I'm using this project https://github.com/electron-react-boilerplate/electron-react-boilerplate and to reproduce just try to bump electron-builder dependency. I don't have any probs with the latest 23.alpha versions, only from 24 onwards. |
Hmmm does this repro for you guys on m1 devices? Or is it only on intel-based macs? @glennmartinez I just tried that project: Set electron-builder 24.1.1 and upped electron to 23.2.0 (also tried with 23.0.0), then ran For those that are experiencing this failing build, can someone please post a build log with |
This is the build log for my project https://github.com/1zilc/fishing-funds/actions/runs/4549186129/jobs/8020996987 . I have added the DEBUG=electron-builder environment variable. My project is based on the electron-react-boilerplate, It seems to be related to the packaging scheme of this project. I think we should submit an issue to ERB 🤔️ |
I have the same issue. A possible workaround is to define electron under devDependencies in the app/package.json. I found no way to define electronVersion via config, env var etc.... My project doesn't depend on electron-react-boilerplate. It's a simple project with a native dependecy (node-printer) , a main dev package.json and a app/package.json
/Users/xxx/dev/ws/xxx/app-project-root/app
My env: |
…ersion for installation. (fixes: #7494)
Thanks all for the logs and project info! I was able to identify the issue and have implemented a fix. Also added a fixture+test to cover the two-package.json project structure with a native module. Tested the fix using the fixture and a fork of @1zilc's project Please try |
Very thanks for your work! 24.1.2 solved this issue |
@mmaietta nice one buddy!!! |
My issues was that I had rolled back my node version to v16.x to work on another project. This was what was causing my issues. Once I changed my working node version v18.x, everything worked. Hope this helps others. |
After upgrading to electron-builder
24.1.0
, our builds have started failing with:I've tried every suggestion mentioned on #3984 (comment) but have had no success.
Any idea what's happening here?
The text was updated successfully, but these errors were encountered: