ajihyf/node-addon-api-helper

error: unknown type name 'NAPI_C_CTOR'

Closed this issue · 2 comments

When trying to use with node-addon-api@8 I get a unknown type name 'NAPI_C_CTOR'

I guess this is not compatible with node-addon-api@8.
If that is the case it would be nice to have that information in the README.

Hi, thank you for reporting this issue. It's not related to the version of node-addon-api but stems from changes made in Node.js version 20. This MR has removed an internal macro that I [ab]used before. I'll be working on a bugfix shortly.

@tuler Just published v2.2.0 which should be compatialble with all Node.js LTS versions.