-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
fix for build failure: electron 29.0.0-alpha.7 #1127
Comments
Thanks for taking the time to do this research and submit this! @JoshuaWise can you check this out when you get a chance? |
Hi, Your fix is working well, |
Seems like this is working for me too. Any chance to get a release of this ? I don't believe anyone can upgrade to electron 29 without this fix otherwise. |
Fixed by #1151 Sorry I missed this one! |
Thank you for releasing this! Of course, I seem to not be able to fully enjoy it as python 3.12 implies node-gyp "^10" which seems to hang the electron build native dependencies step. (both better-sqlite3@9.4.3 with my patch-package modification and 9.4.4 without). Downgrading to python 3.11 and not pinning node-gyp with overrides in the package json still builds, (but now my build process "works on my machine" only... and I'd rather not have to dockerize my electron build at this point, it's slow enough as it is). This could easily an electron-forge or node-gyp 10 issue, but if anyone has any guidance/ideas to share, I'd appreciate it! Guessing: https://github.com/nodejs/node-gyp/releases/tag/v10.0.0 mentions
so forcing the version to ^10 is likely hanging forge because it's passing callbacks which are being ignored. |
@sparecycles what OS and version of node are you running? FWIW I'm using the latest version of electron-forge, electron, and better-sqlite3 and can build on ubuntu 22.04.4 LTS using node v20.11.1 and python 3.10.12 (I've probably run |
@mceachen OSX 14.4.1, node 20.11.1. The update to python 3.12 (base) specifically breaks node-gyp and I've tested and overriding the version of node-gyp to 10^ replaces the crash with a hang (with python reverted to 3.11 and everything else otherwise working). Looks like electron/rebuild#1128 is basically a one-line fix but it's stalled in the build process for whatever reasons. 99% sure this isn't specific to better-sqlite3, it just happens to be my only use-case for a native module and the stars aligned! |
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
better-sqlite3@9.2.2
for the project I'm working on.I'm building better-sqlite3 with electron-forge / vite and there's a lot of warnings and one actual error.
The actual error involves the signature of
SetAccessor
and what I assume has been thrash of its myriad overloads conflicting with what's currently specified in better-sqlite3, but as it appears that what's specified in better-sqlite3 is the defaults, simply removing them might be fine?I don't feel like confirming this is the correct course for historical versions of NodeJS, which is why this is an issue and not a PR.
Hopefully I'm not doing something horribly wrong here: if that's evident, please let me know! 😉
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: