Giter Site home page Giter Site logo

Comments (8)

1notchdev avatar 1notchdev commented on July 30, 2024 1

@ivangabriele , Thank you!
Node 8.10.0
Mac
What information do you need more?
As I am working on urgent project, I want you to review this issue ASAP.

from electra-js.

ivangabriele avatar ivangabriele commented on July 30, 2024 1

Yes @topguru I didn't have time to test it on other versions yet. Again as I told before it's a work in progress, it's not even a beta version yet.

from electra-js.

ivangabriele avatar ivangabriele commented on July 30, 2024

@topguru ElectraJs is indeed still an work in progress.

It's a strange error though. Can I have more details, in what environment do you run it ?

from electra-js.

ivangabriele avatar ivangabriele commented on July 30, 2024

But the thing @topguru is that you won't be able to use the wallet in production if that's your goal. It's really a work in progress right now and many methods don't work: you can't send a transaction, you can't list the transactions history, the import/export have not been tested...

from electra-js.

Hyjaz avatar Hyjaz commented on July 30, 2024

@topguru You should use node v9.4.0. I am not certain how you were able to install electra-js on node v8.10.0.

Try it with node v9.4.0, and get back to us.

from electra-js.

1notchdev avatar 1notchdev commented on July 30, 2024

If supports with only v9.4.0, it is unable to use. Because the recommended latest node.js version is v8.10.

from electra-js.

ivangabriele avatar ivangabriele commented on July 30, 2024

@topguru When you call new ElectraJs() without any parameter, you are actually calling the light wallet version, which requires a Browser-like environment. That's why you get the XMLHttpRequest is not defined in Node.js error.

You need to specify const electraJs = new ElectraJs({ hard: true }) to switch to the hard wallet mode which is adapted to a NodeJS environment.

You also don't start the wallet correctly, I invite you to check the hard wallet example I created to see how it works.

I also just updated the engines to include NodeJS v8 & npm v5 since my tests passed on it. It's thus fixed in the version 0.14.5.

from electra-js.

ivangabriele avatar ivangabriele commented on July 30, 2024

I'm closing that. Please reopen it if needed ;)

from electra-js.

Related Issues (13)

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.