-
Notifications
You must be signed in to change notification settings - Fork 171
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 for Node.js v20 #268
Comments
A bit of context on this: The library still works on node 20 but the prebuilt binaries don't seem to be published for this version. So it builds necessarily on install. |
That's strange, because I'm getting build errors on node 20:
|
@skerit I tried on a variety of macos and ubuntu (laptop + headless) without any issue other than missing prebuilts. |
I've just upgraded my CI (ubuntu) to use node 20 and I believe the installation of this package fails.
This is the CI run: Relevant PR: Am I doing anything wrong? Probably similar to #267 |
@HarelM it looks like Try |
Thanks for the tip! I have decided to remove this dependency and mock gl behavior when running jest tests. |
Strongly need prebuilt binaries for node 20 (or other new node versions), especially on windows. It is too complex and time consuming for installing windows-build-tools (more than 3GB) for just building a small package (compared to 3GB) like headless-gl ...
|
Anyone used it within electron? I got below error after days of struggling:
I used "electron": "29.1.0", which has corresponding NODE_MODULE_VERSION 121, and after checking electron releases info from below link, there is NO NODE_MODULE_VERSION 115.
|
Prebuilds are available for linux/macOS with the latest v8.0.2 release. Node versions 18 and 20 are supported. Sorry for the wait! |
@dhritzkiv Thank you very much! |
@xeoshow it should be all versions: 18.x.x and 20.x.x. As for electron, it has a different abi version than node (unless something has recently changed), so the prebuilds won't work there – it'll have to build from source when you install. |
Thank you very much for your kind help.
|
@dhritzkiv @xeoshow hi,when i build electron in windows, its fails,
how to solve this? |
@ImpChiang Hmm the error from Visual Studio is not very helpful. Any chance you can get a more detailed message somehow? (I'm not familiar with Windows anymore, so I can't really walk you through with specific steps) Also, I'm not sure if the current build process is supported with Visual Studio 2017 toolchain. Are you able to use a more recent version, and see it if produces better results? |
I use electron version 29.3.0 within nodejs version 20.9.0,when use electron-builder it throw an error |
@ImpChiang that's expected to happen, as:
That said, prebuilt versions are a convenience, and when installing headless-gl, it should still build from source using a build toolkit on your system. It looks like it's failing when it tries to build with Visual Studio. |
ok,Thanks a lot |
No description provided.
The text was updated successfully, but these errors were encountered: