GithubHelp home page GithubHelp logo

support node 10.4 about node-gtk HOT 8 CLOSED

romgrk avatar romgrk commented on August 18, 2024
support node 10.4

from node-gtk.

Comments (8)

romgrk avatar romgrk commented on August 18, 2024

Yes, currently only tested with 8.x.
Issues with 10.x are caused by the removal of V8's object->ForceSet(), which is still used in [email protected].
nodejs/nan#763

from node-gtk.

romgrk avatar romgrk commented on August 18, 2024

nodejs/nan#763 (comment)
screenshot from 2018-06-12 16-23-31

Which is true #if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION:
https://github.com/nodejs/nan/blob/master/nan_maybe_43_inl.h#L137-L144

Not sure where it's coming from yet. (Btw, I'm assuming you get the same issue I get on my home laptop when building, which is something related to ForceSet)

from node-gtk.

benwaffle avatar benwaffle commented on August 18, 2024
../src/function.cc:59:58: error: too few arguments to function call, expected 4, have 3
    auto res = stringify->CallAsFunction(JSON, 1, args_js);
               ~~~~~~~~~~~~~~~~~~~~~~~~~                 ^
../node_modules/nan/nan_callbacks_12_inl.h:108:64: error: no member named 'Callee' in 'v8::FunctionCallbackInfo<v8::Value>'
  inline v8::Local<v8::Function> Callee() const { return info_.Callee(); }
                                                         ~~~~~ ^

from node-gtk.

romgrk avatar romgrk commented on August 18, 2024

0d789b9 will solve the top one.

Bottom one is probably related to invalid node or nan headers. Could you try to find which version of node and nan headers are used?

  • Nan: cat node_modules/nan/package.json | grep '"version"'
  • Node: search in ./build/node-gtk.target.mk for .node-gyp, or list ~/.nody-gyp (if you don't find, link to a paste of the complete build output)

from node-gtk.

romgrk avatar romgrk commented on August 18, 2024

Could reproduce the issue, opened nodejs/nan#788.

from node-gtk.

romgrk avatar romgrk commented on August 18, 2024

Basically, it seems that nan doesn't support node 10.x even though it says it does. The reason is that FunctionCallbackInfo.Callee has been deprecated & removed on V8, but nan didn't catch up.

For the moment, it's possible to build and run on node 10.x by commenting the line 108 of node_modules/nan/nan_callbacks_12_inl.h. We'll wait for a reply from nan's maintainer to check for a more permanent solution.

from node-gtk.

romgrk avatar romgrk commented on August 18, 2024

Waiting for a PR on the upstream nan to be merged, but this should now compile anyway (tested on 10.2.1). Does it work for you, @benwaffle?

from node-gtk.

benwaffle avatar benwaffle commented on August 18, 2024

yep

image

from node-gtk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.