When I include both stellar-hd-wallet
and stellar-sdk
in my project I get errors when requiring them both as stellar-base is included twice which also imports the generated XDR types twice causing the below error.
Any suggestions?
Error: XDR Error:Value is already defined
at TypeBuilder.define (/code/blockchain-client/node_modules/js-xdr/lib/config.js:341:17)
at TypeBuilder.typedef (/code/blockchain-client/node_modules/js-xdr/lib/config.js:247:14)
at /code/blockchain-client/node_modules/stellar-hd-wallet/node_modules/stellar-base/lib/generated/stellar-xdr_generated.js:1:259
at Object.config (/code/blockchain-client/node_modules/js-xdr/lib/config.js:38:5)
at Object.<anonymous> (//code/blockchain-client/node_modules/stellar-hd-wallet/node_modules/stellar-base/lib/generated/stellar-xdr_generated.js:1:234)
These are the related deps in my package.json:
"stellar-hd-wallet": "0.0.6",
"stellar-sdk": "^0.9.2"
npm ls
to see if stellar-base is included by something else?