-
Notifications
You must be signed in to change notification settings - Fork 119
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
Problem with nan - AccessorSignature #230
Comments
Do you fancy giving https://www.npmjs.com/package/@julusian/midi a try? Its a api compatible rewrite on node-api #228. I don't know if it will work with nw (I've never used nw myself), but Im happy to get it working if it is wanted |
Thank you very much! I will try it and let you know how it goes. I am using both Mac and PC. |
I'm getting this error message when I use the module. I'm not clear on the binding mechanism. If you have an immediate solution, that would be great, otherwise I will study binding! I'm testing on a Mac.
|
The binding is the native component, which you were having issues building at the start of this issue thread. Oh, and I can immediately see the issue, its looking for a nw version of the file (separate to the node/electron version), which I havent prebuilt.. |
Apologies for the slow reply - had to leave this for a while. |
I've spent a couple of hours looking into what I can do on this and I am not sure how best to proceed It looks like it would be possible to automate making prebuilt binaries for nwjs, but for windows that does require modifying a file from node-gyp which sounds like it is going to be very fragile and fiddly. Or perhaps nwjs is a small enough user base to not worry about it for now, and leave it as expected that you will need to run I have opened an issue to discuss whether that file hack is necessary or if it could be upstreamed, which would be the ideal solution but will take time to happen if it ever does. |
Thanks for all the work on this issue! From my point of view, doing the rebuild is fine. Just need to document it, so I remember :) |
I have been using this package very successfully for a few years, thank you!
Recently I updated to node v 18.10.0 and nw v0.69.1. When I rebuild:
nw-gyp rebuild --target=0.69.1 --arch=x64
I get:
../../nan/nan_callbacks.h:55:23: error: no member named 'AccessorSignature' in namespace 'v8'
typedef v8::Localv8::AccessorSignature Sig;
~~~~^
And so the build fails. I have tried putting this into the midi package.json:
"overrides": {
"nan": "github:jkleinsc/nan#remove_accessor_signature"
},
But still get the same message. Any suggestions?
The text was updated successfully, but these errors were encountered: