Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 493
Closed
Description
I'm not sure what to do with this. the version matrix (https://nodejs.org/api/n-api.html#n_api_n_api_version_matrix) says that napi v1 is present but experimental in 8.0.0. I guess that's not entirely correct?
In file included from ../packages/dd-trace/src/native/metrics/main.cc:17: node_modules/node-addon-api/napi.h:1058:24: error: unknown type name 'napi_async_context' napi_async_context context = nullptr) const; ^ node_modules/node-addon-api/napi.h:1061:24: error: unknown type name 'napi_async_context' napi_async_context context = nullptr) const; ^ node_modules/node-addon-api/napi.h:1065:24: error: unknown type name 'napi_async_context' napi_async_context context = nullptr) const; ^ node_modules/node-addon-api/napi.h:1058:43: error: cannot initialize a parameter of type 'int' with an rvalue of type 'nullptr_t' napi_async_context context = nullptr) const; ^ ~~~~~~~ node_modules/node-addon-api/napi.h:1058:43: note: passing argument to parameter 'context' here /Users/gus.caplan/go/src/github.com/DataDog/dd-trace-js/node_modules/node-addon-api/napi.h:1061:43: error: cannot initialize a parameter of type 'int' with an rvalue of type 'nullptr_t' napi_async_context context = nullptr) const; ^ ~~~~~~~ node_modules/node-addon-api/napi.h:1061:43: note: passing argument to parameter 'context' here node_modules/node-addon-api/napi.h:1065:43: error: cannot initialize a parameter of type 'int' with an rvalue of type 'nullptr_t' napi_async_context context = nullptr) const; ^ ~~~~~~~ node_modules/node-addon-api/napi.h:1065:43: note: passing argument to parameter 'context' here node_modules/node-addon-api/napi.h:1087:7: error: unknown type name 'napi_deferred' napi_deferred _deferred; ^ node_modules/node-addon-api/napi.h:1238:30: error: unknown type name 'napi_async_context' napi_async_context context = nullptr) const; ^ node_modules/node-addon-api/napi.h:1241:30: error: unknown type name 'napi_async_context' napi_async_context context = nullptr) const; ^ node_modules/node-addon-api/napi.h:1245:30: error: unknown type name 'napi_async_context' napi_async_context context = nullptr) const; ^ node_modules/node-addon-api/napi.h:1238:49: error: cannot initialize a parameter of type 'int' with an rvalue of type 'nullptr_t' napi_async_context context = nullptr) const; ^ ~~~~~~~ node_modules/node-addon-api/napi.h:1238:49: note: passing argument to parameter 'context' here node_modules/node-addon-api/napi.h:1241:49: error: cannot initialize a parameter of type 'int' with an rvalue of type 'nullptr_t' napi_async_context context = nullptr) const; ^ ~~~~~~~ node_modules/node-addon-api/napi.h:1241:49: note: passing argument to parameter 'context' here node_modules/node-addon-api/napi.h:1245:49: error: cannot initialize a parameter of type 'int' with an rvalue of type 'nullptr_t' napi_async_context context = nullptr) const; ^ ~~~~~~~ node_modules/node-addon-api/napi.h:1245:49: note: passing argument to parameter 'context' here node_modules/node-addon-api/napi.h:1359:12: error: unknown type name 'NAPI_NO_RETURN' static NAPI_NO_RETURN void Fatal(const char* location, const char* message); ^ node_modules/node-addon-api/napi.h:1966:14: error: unknown type name 'napi_async_context' operator napi_async_context() const; ^ node_modules/node-addon-api/napi.h:1972:5: error: unknown type name 'napi_async_context' napi_async_context _context; ^ node_modules/node-addon-api/napi.h:2420:20: error: unknown type name 'napi_node_version' static const napi_node_version* GetNodeVersion(Env env); ^ In file included from ../packages/dd-trace/src/native/metrics/main.cc:17: In file included from node_modules/node-addon-api/napi.h:2426: node_modules/node-addon-api/napi-inl.h:320:24: error: use of undeclared identifier 'napi_run_script' napi_status status = napi_run_script(_env, script, &result); ^ node_modules/node-addon-api/napi-inl.h:505:24: error: use of undeclared identifier 'napi_is_promise' napi_status status = napi_is_promise(_env, _value, &result); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] Metadata
Metadata
Assignees
Labels
No labels