ApsarasX/llvm-bindings

error: use of undeclared identifier 'napi_object_freeze'

bconnorwhite opened this issue · 4 comments

I noticed a bunch of "use of undeclared identifier" errors after upgrading to v0.2.0 coming from node-addon-api on postinstall (with node v15), downgrading to node v14 fixes the issue

Looks like it must be the bump from node-addon-api 3.1.0 -> 3.2.0

Can you provide some sample code that causes this error?

This was when I ran postinstall

Yes, this problem is indeed caused by compatibility. The compatible version of napi_object_freeze is as follows
image

image