Comments (4)
Is this with the 1.0.1 release? The browserify build should exclude building with bitcore-lib included.
from bitcore-payment-protocol.
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.
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.
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)
- bower produced JS file doesnt expose PaymentProtocol HOT 1
- root cert in request must be optional
- getTBSCertificate is broken HOT 2
- Create a script to update the rootcerts HOT 1
- Signature in PaymentRequest from Coinbase fails to verify HOT 1
- NPM warning on module install
- .Output#messageType is not a field: undefined HOT 3
- Payment Request: Can't figure out how generate a x509 certificate HOT 2
- Improve docs and ease of use
- Payment request certificate chain
- npm test is broken HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitcore-payment-protocol.