y-dat icon indicating copy to clipboard operation
y-dat copied to clipboard

Installation problems: ../src/socket_wrap.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE SocketWrap::Context(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/socket_wrap.cc:99:45: error: no matching function for call to ‘v8::Value::ToObject()’ 99 | Local<Object> context = info[0]->ToObject(); | ^

Open marcoippolito opened this issue 5 years ago • 2 comments

First I installed sodium-native and udp-native, with no errors. Then I installed y-dat but got these error messages:

../src/socket_wrap.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE   
SocketWrap::Context(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/socket_wrap.cc:99:45: error: no matching function for call to ‘v8::Value::ToObject()’
   99 |   Local<Object> context = info[0]->ToObject();
     |                                             ^

I attach here the complete log of the installation: y-datInstallConfig.txt

info:

(base) marco@pc01:~/webMatters/vueMatters/GGC$ vue info

Environment Info:

  System:
    OS: Linux 5.3 Ubuntu 18.04.4 LTS (Bionic Beaver)
    CPU: (8) x64 Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
  Binaries:
    Node: 14.3.0 - ~/.nvm/versions/node/v14.3.0/bin/node
    Yarn: 1.22.4 - /usr/bin/yarn
    npm: 6.14.5 - ~/.nvm/versions/node/v14.3.0/bin/npm
  Browsers:
    Chrome: 83.0.4103.116
    Firefox: 77.0.1

How to solve the problem? Looking forward to your kind help. Marco

marcoippolito avatar Jun 30 '20 09:06 marcoippolito

Hello @marcoippolito do you solved the issue ? Was quit a long time ago.

If it is still an issue, do you still have a package.json that you could post?

To help, and guessing you are on electron: it looks to me that y-dat requires dat-sdk that had problems at the time of your issue with electron because of sodium-native module. https://github.com/datproject/sdk/issues/56.

I think we won't be able to fix this issue from this package... Hope you found a way!

froger avatar Mar 08 '21 17:03 froger

Hi @froger, I don't have time to maintain this package at the moment. Unfortunately, there is little interest in this package and I would be maintaining it for too few people. If you find the issue, I'd happily accept a PR. If you find time to maintain it, I'd be happy to help you get started.

dmonad avatar Mar 08 '21 19:03 dmonad