Skip to content
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: electron 11 prebuilds broken #2237

Merged
merged 1 commit into from
May 24, 2021

Conversation

Julusian
Copy link
Contributor

Fixes #2191

A temporary fix until fixed upstream electron/node-abi#103 or prebuild/prebuild#275

As explained in my comment #2191 (comment), electron v11.0.0-beta.12 started to define the variable V8_REVERSE_JSARGS. But as prebuild/node-abi use v11.0.0-beta.11 for producing the prebuilds, this resulted in binaries which were broken.

This is the simplest way I could find to do this while keeping it scoped to just electron 11. I couldn't find a way to check NODE_MODULE_VERSION in binding.gyp, so I had to do it in serialport.h instead.
It is limited to windows as that appears to be the only platform that is broken, and without testing I don't know what the impact would be on other platforms

@Julusian Julusian changed the title fix: electron 11 prebuilds were broken fix: electron 11 prebuilds broken Apr 14, 2021
@Julusian
Copy link
Contributor Author

@reconbot any chance of this getting merged? It will make building for electron 11 much easier

@reconbot reconbot merged commit ac25b3a into serialport:master May 24, 2021
@reconbot
Copy link
Member

lets do it, sorry I missed this

ALSO I wish they'd fix this upstream

@mayrmax
Copy link

mayrmax commented May 26, 2021

@reconbot Could you trigger a new build of the bindings? Otherwise they cant be resolved. Thank you :)

@reconbot
Copy link
Member

https://github.com/serialport/node-serialport/actions/runs/878496051 that should have happened automatically - I'm hoping something didn't change in lerna...

@mayrmax
Copy link

mayrmax commented May 26, 2021

thank you! :)

lvogt pushed a commit to lvogt/node-serialport that referenced this pull request Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: Third argument must be a function
3 participants