Code Monkey home page Code Monkey logo

Comments (4)

braydonf avatar braydonf commented on June 28, 2024

Is this with the 1.0.1 release? The browserify build should exclude building with bitcore-lib included.

from bitcore-payment-protocol.

braydonf avatar braydonf commented on June 28, 2024

Sorry, just realized you're in Node.js. I'm not sure how you've setup the libraries, but try:

npm init
npm install bitcore-lib --save
npm install bitcore-payment-protocol --save

from bitcore-payment-protocol.

insanity54 avatar insanity54 commented on June 28, 2024

Thanks, that seems to work after creating a fresh project. I wanted to see if I could reproduce the issue, but I'm having trouble doing that.

It might have something to do with the fact that I also had bitcore installed in addition to bitcore-lib and bitcore-payment-protocol.

In my use case, I've got several processes that run independently, which I start up with Foreman.

$ cat Procfile
db: couchdb
clock: node clock.js
bitcoin: bitcored
bip70: node bitcoin.js

So one process is a bitcore full node, another is node running bitcoin.js which is implementing this BIP70 via bitcore.

Hmm, I'll mess around with it some more. Could just be PEBKAC.

from bitcore-payment-protocol.

cosmoarunn avatar cosmoarunn commented on June 28, 2024

The error thrown from index.js file,

`bitcore.versionGuard = function(version) {
  if (version !== undefined) {
    var message = 'More than one instance of bitcore-lib found. ' + 
      'Please make sure to require bitcore-lib and check that submodules do' +
      ' not also include their own bitcore-lib dependency.';
    throw new Error(message);
  }
};`

you can either update the version or mark it 'undefined'.
PS: (It's not an issue of installing bitcore globally )

from bitcore-payment-protocol.

Related Issues (12)

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.