../typed_threadsafe_function/typed_threadsafe_function_ctx.cc: In constructor ‘{anonymous}::TSFNWrap::TSFNWrap(const Napi::CallbackInfo&)’:
../typed_threadsafe_function/typed_threadsafe_function_ctx.cc:59:22: error: no matching function for call to ‘Napi::TypedThreadSafeFunction<Napi::Reference<Napi::Value> >::New(Napi::Env, Napi::Object, const char [5], int, int, ContextType*&, {anonymous}::TSFNWrap::TSFNWrap(const Napi::CallbackInfo&)::<lambda(Napi::Env, void*, ContextType*)>)’
59 | });
| ^
In file included from ../typed_threadsafe_function/typed_threadsafe_function_ctx.cc:1:
../../napi.h:2345:67: note: candidate: ‘template<class ResourceString> static Napi::TypedThreadSafeFunction<ContextType, DataType, CallJs> Napi::TypedThreadSafeFunction<ContextType, DataType, CallJs>::New(napi_env, const Napi::Function&, ResourceString, size_t, size_t, ContextType*) [with ResourceString = ResourceString; ContextType = Napi::Reference<Napi::Value>; DataType = void; void (* CallJs)(Napi::Env, Napi::Function, ContextType*, DataType*) = 0]’
2345 | static TypedThreadSafeFunction<ContextType, DataType, CallJs> New(
| ^~~
../../napi.h:2345:67: note: template argument deduction/substitution failed:
../typed_threadsafe_function/typed_threadsafe_function_ctx.cc:59:22: note: candidate expects 6 arguments, 7 provided
59 | });
| ^
In file included from ../typed_threadsafe_function/typed_threadsafe_function_ctx.cc:1:
../../napi.h:2357:67: note: candidate: ‘template<class ResourceString> static Napi::TypedThreadSafeFunction<ContextType, DataType, CallJs> Napi::TypedThreadSafeFunction<ContextType, DataType, CallJs>::New(napi_env, const Napi::Function&, const Napi::Object&, ResourceString, size_t, size_t, ContextType*) [with ResourceString = ResourceString; ContextType = Napi::Reference<Napi::Value>; DataType = void; void (* CallJs)(Napi::Env, Napi::Function, ContextType*, DataType*) = 0]’
2357 | static TypedThreadSafeFunction<ContextType, DataType, CallJs> New(
| ^~~
../../napi.h:2357:67: note: template argument deduction/substitution failed:
../typed_threadsafe_function/typed_threadsafe_function_ctx.cc:50:32: note: cannot convert ‘(({anonymous}::TSFNWrap*)this)->{anonymous}::TSFNWrap::<anonymous>.Napi::ObjectWrap<{anonymous}::TSFNWrap>::<anonymous>.Napi::Reference<Napi::Object>::Value()’ (type ‘Napi::Object’) to type ‘const Napi::Function&’
50 | this->Value(),
| ~~~~~~~~~~~^~
In file included from ../typed_threadsafe_function/typed_threadsafe_function_ctx.cc:1:
../../napi.h:2372:67: note: candidate: ‘template<class ResourceString, class Finalizer, class FinalizerDataType> static Napi::TypedThreadSafeFunction<ContextType, DataType, CallJs> Napi::TypedThreadSafeFunction<ContextType, DataType, CallJs>::New(napi_env, const Napi::Function&, ResourceString, size_t, size_t, ContextType*, Finalizer, FinalizerDataType*) [with ResourceString = ResourceString; Finalizer = Finalizer; FinalizerDataType = FinalizerDataType; ContextType = Napi::Reference<Napi::Value>; DataType = void; void (* CallJs)(Napi::Env, Napi::Function, ContextType*, DataType*) = 0]’
2372 | static TypedThreadSafeFunction<ContextType, DataType, CallJs> New(
| ^~~
../../napi.h:2372:67: note: template argument deduction/substitution failed:
../typed_threadsafe_function/typed_threadsafe_function_ctx.cc:50:32: note: cannot convert ‘(({anonymous}::TSFNWrap*)this)->{anonymous}::TSFNWrap::<anonymous>.Napi::ObjectWrap<{anonymous}::TSFNWrap>::<anonymous>.Napi::Reference<Napi::Object>::Value()’ (type ‘Napi::Object’) to type ‘const Napi::Function&’
50 | this->Value(),
| ~~~~~~~~~~~^~
In file included from ../typed_threadsafe_function/typed_threadsafe_function_ctx.cc:1:
../../napi.h:2389:67: note: candidate: ‘template<class CallbackType, class ResourceString, class Finalizer, class FinalizerDataType> static Napi::TypedThreadSafeFunction<ContextType, DataType, CallJs> Napi::TypedThreadSafeFunction<ContextType, DataType, CallJs>::New(napi_env, CallbackType, const Napi::Object&, ResourceString, size_t, size_t, ContextType*, Finalizer, FinalizerDataType*) [with CallbackType = CallbackType; ResourceString = ResourceString; Finalizer = Finalizer; FinalizerDataType = FinalizerDataType; ContextType = Napi::Reference<Napi::Value>; DataType = void; void (* CallJs)(Napi::Env, Napi::Function, ContextType*, DataType*) = 0]’
2389 | static TypedThreadSafeFunction<ContextType, DataType, CallJs> New(
| ^~~
../../napi.h:2389:67: note: template argument deduction/substitution failed:
../typed_threadsafe_function/typed_threadsafe_function_ctx.cc:59:22: note: candidate expects 9 arguments, 7 provided
59 | });
| ^
In file included from ../typed_threadsafe_function/typed_threadsafe_function_ctx.cc:1:
../../napi.h:2434:67: note: candidate: ‘template<class ResourceString, class Finalizer, class FinalizerDataType> static Napi::TypedThreadSafeFunction<ContextType, DataType, CallJs> Napi::TypedThreadSafeFunction<ContextType, DataType, CallJs>::New(napi_env, const Napi::Function&, const Napi::Object&, ResourceString, size_t, size_t, ContextType*, Finalizer, FinalizerDataType*, napi_finalize) [with ResourceString = ResourceString; Finalizer = Finalizer; FinalizerDataType = FinalizerDataType; ContextType = Napi::Reference<Napi::Value>; DataType = void; void (* CallJs)(Napi::Env, Napi::Function, ContextType*, DataType*) = 0]’
2434 | static TypedThreadSafeFunction<ContextType, DataType, CallJs> New(
| ^~~
../../napi.h:2434:67: note: template argument deduction/substitution failed:
../typed_threadsafe_function/typed_threadsafe_function_ctx.cc:59:22: note: candidate expects 10 arguments, 7 provided
59 | });
| ^
I tried to build from main and got this: