-
Notifications
You must be signed in to change notification settings - Fork 459
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
1.0.0 compiler errors #147
Comments
The 1.0 release requires node 8.6. |
oh, ok, thats simple enough. Thank you |
@jasongin yup that worked. I had to change my addon.cc NODE_API_MODULE from void init(Env, Object, Object) to Object init(Env env, Object exports)
{
class::initialize(env, exports)
return exports
} but other than that it seems to be good. |
Yes, that was a recent breaking change. As indicated by the 1.0 version number, we're not planning to make any more breaking changes going forward. |
What's the recommend path for those targeting older Node.js releases? The readme still states:
|
The intention is that this package can use its external copy of the N-API implementation when built with versions of node that don't have it built-in. That should include 8.0 - 8.5.x, 6.x, and 4.x versions. (The disadvantage of that back-compat support is that you have to recompile when switching between older versions, just as with any classic node native addon.) However, there are some issues currently with that older-version support. @gabrielschulhof is looking into that, it's tracked by #142 |
I think this can probably be closed now as the original issue was resolved ? @sandeepmistry |
Sorry just meant to ask the question not close, @sandeepmistry please close if you agree. |
Thanks, closing. |
Hello, just updated to the 1.0 version. I am getting some errors though that I am not sure how should be handled.
this error just repeats over and over for each objectwrapper
Here is the class that the above is erroring out with
Thanks, and thanks for taking the time to write this, it has been an overall very pleasant experience for writing native node addons with.
The text was updated successfully, but these errors were encountered: