-
Notifications
You must be signed in to change notification settings - Fork 30k
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
The latest minor version update broke ffi-napi compatibility #52240
Comments
Unfortunately the continuous integration tests on the
Closing in favor of |
So basically the only explanation is that node-ffi-napi is too old and is not going to be supported anymore? Isn't there any workaround that does not involve using other FFI libraries? |
There is a fork that some people have said works but your mileage may vary... |
Well, it seems that the issue started after 7a216d5, since it introduces a breaking change in I ended up updating the fork at https://github.com/2060-io/node-ffi-napi, which was created to fix other issues (with its sibling ref-napi). I'm currently testing with the npm release 4.0.8, so far so good! |
If only your fork worked in electron too :( |
@genaris - you may wish to enable issues on your repo ( https://github.com/2060-io/node-ffi-napi), so I could add this comment: |
Thanks @btsimonh! I've enabled issues in my repo. |
The widely used ffi-napi module won't build with the latest minor update across almost all version.
It can build with ~ 20.11.1, ~ 21.5.0
But failed with 20.12.0, 21.6.0 ~
The error log is :
npm ERR! /home/mark/Projects/eudiw-app/node_modules/node-addon-api/napi-inl.h:63:47: error: invalid conversion from ‘napi_finalize’ {aka ‘void ()(napi_env__, void*, void*)’} to ‘node_api_nogc_finalize’ {aka ‘void ()(const napi_env__, void*, void*)’} [-fpermissive]
The text was updated successfully, but these errors were encountered: