Closed ecdeveloper closed 10 years ago
Does your module compile with Node v0.11?
Yes. Tried with 0.11.10 - exactly the same errors.
Then it's not an issue in node-webkit. There is an API change in Node v0.11 from v0.10. You'll need to update your native module.
btw, this might help: https://github.com/rvagg/nan
But it actually doesn't work even with the stable v0.10.25. The issue is only with node-webkit v0.9 (no matter which version of node I use). In case of node-webkit v0.8.4 it works with both node versions (0.10 and 0.11). Any hints?
node-webkit contains a copy of Node inside of it. It doesn't matter with which version you installed in your system, which nw-gyp
reports. That should confused you.
node-webkit v0.9.1 contains Node v0.11.9 and node-webkit v0.8.x contains Node v0.10.x.
The same code which worked fine with node-webkit 0.8.4 now throws errors while building.
Also, for a regular method setup to exports it throws an error as well:
Here is the error:
Once again, this code works just fine with node-webkit 0.8.4 and older.