ardb
ardb copied to clipboard
Compatibility issue with arweave 1.13.6
Hello guys, how is it going?
Today I was updating the libraries on some of my projects and I noticed an error when using ardb
. I updated arweave-js
library to the latest version 1.13.6
but it seems that this new version has changes that are not compatible with ardb.
I'm getting this error:
Argument of type 'Arweave' is not assignable to parameter of type 'Arweave | Blockweave'.
Type 'import("C:/xampp/htdocs/arwiki/node_modules/arweave/node/common").default' is not assignable to type 'import("C:/xampp/htdocs/arwiki/node_modules/blockweave/node_modules/arweave/node/common").default'.
Types of property 'api' are incompatible.
Type 'import("C:/xampp/htdocs/arwiki/node_modules/arweave/node/lib/api").default' is not assignable to type 'import("C:/xampp/htdocs/arwiki/node_modules/blockweave/node_modules/arweave/node/lib/api").default'.
Types have separate declarations of a private property 'mergeDefaults'.
19 this._ardb = new ArDB(_arweave);
What do you think guys? Thanks in advance for your help 🙏