Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: no matching member function for call to 'NewInstance' on node v10.3.0 #32

Closed
lorin opened this issue Jun 26, 2018 · 1 comment · Fixed by #33
Closed

error: no matching member function for call to 'NewInstance' on node v10.3.0 #32

lorin opened this issue Jun 26, 2018 · 1 comment · Fixed by #33

Comments

@lorin
Copy link

lorin commented Jun 26, 2018

When attempting to npm install node-blink1 using node v10.3.0, node-gyp v3.6.2, I get the following error:

$ npm install node-blink1
...
  LIBTOOL-STATIC Release/hidapi.a
  CXX(target) Release/obj.target/HID/src/HID.o
../src/HID.cc:207:45: error: no matching member function for call to 'NewInstance'
    Local<Object> buf = nodeBufConstructor->NewInstance(1, nodeBufferArgs);
                        ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/lhochstein/.node-gyp/10.3.0/include/node/v8.h:3862:44: note: candidate function not viable: requires single argument 'context', but 2 arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
                                           ^
/Users/lhochstein/.node-gyp/10.3.0/include/node/v8.h:3859:44: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
                                           ^
@lorin lorin changed the title Fails to install with node v10.3.0 error: no matching member function for call to 'NewInstance' on node v10.3.0 Jun 26, 2018
@todbot
Copy link
Sponsor Collaborator

todbot commented Jun 26, 2018

Hi,
This is not a bug in node-blink1 exactly, but rather its dependency node-hid.

I've opened issue node-hid/node-hid#266 to track it. (I'm a maintainer on node-hid so I'm looking into this right now).

I'd like to leave this issue open until we can verify node-hid works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants