You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thanks for node-addon-api: it allowed me to port old code to v8.9.1.
I'm trying to backport my module to v6.12.1, and I'm getting compile errors after following the steps in the Setup guide (and having it work perfectly under Node v8.9.1).
They all seem related to async_context not existing in v6.
Hi @michaelfig,
If I understood you had problem with version 1.1.0 of node-addon-api while with 1.0.0 all worked well for you.
About that I'm curios so if your addon is a public addon please post the link at your code. I want try to take a look.
Nick
My guess is that possibly the issue is related to paths, with somehow the files from the node runtime being used instead of those provided as part of node-addon-api.
Can you provide some more info on anything special about your build setup ?
@gabrielschulhof adding you as an FYI as you did much of the work to support the older release and I wonder if you have run into some combination in the past that shows these symptoms.
The installation and usage guide says to reference "1.0.0" in the package.json, but when I changed it to "^1.0.0" and npm update node-addon-api, I got 1.1.0 which adds the necessary support to v6.
Node-gyp has problems with v0.10 due to c++ flags, but at least 6.x works!
@mhdawson We need to change the reference in the installation and usage documentation. @michaelfig Maybe I'm not really sure but I could works even if with Node.js 4.x
Activity
michaelfig commentedon Dec 28, 2017
BTW, I used node-addon-api@1.0.0 for both compiles.
NickNaso commentedon Jan 3, 2018
Hi @michaelfig,
If I understood you had problem with version 1.1.0 of node-addon-api while with 1.0.0 all worked well for you.
About that I'm curios so if your addon is a public addon please post the link at your code. I want try to take a look.
Nick
mhdawson commentedon Jan 3, 2018
I can see that we define some of the functions reported as missing in https://github.com/nodejs/node-addon-api/blob/master/src/node_internals.h.
For example:
My guess is that possibly the issue is related to paths, with somehow the files from the node runtime being used instead of those provided as part of node-addon-api.
Can you provide some more info on anything special about your build setup ?
@gabrielschulhof adding you as an FYI as you did much of the work to support the older release and I wonder if you have run into some combination in the past that shows these symptoms.
michaelfig commentedon Jan 4, 2018
Ah, thanks!
The installation and usage guide says to reference "1.0.0" in the package.json, but when I changed it to "^1.0.0" and npm update node-addon-api, I got 1.1.0 which adds the necessary support to v6.
Node-gyp has problems with v0.10 due to c++ flags, but at least 6.x works!
NickNaso commentedon Jan 4, 2018
@mhdawson We need to change the reference in the installation and usage documentation.
@michaelfig Maybe I'm not really sure but I could works even if with Node.js 4.x
michaelfig commentedon Jan 4, 2018
I've tested it successfully for node v4.8.7 as well.
Thanks.
doc: Update package.json example
mhdawson commentedon Jan 5, 2018
Sounds like we can close this. If not please let me know and I'll re-open.
doc: Update package.json example
doc: Update package.json example
doc: Update package.json example
doc: Update package.json example