bitcore icon indicating copy to clipboard operation
bitcore copied to clipboard

bitcore-lib-doge got error: Right-hand side of 'instanceof' is not callable

Open tower1229 opened this issue 1 year ago • 3 comments

reports an error when using vite to build in a browser environment.

const tx = new bitcore.Transaction().from(utxos).to(toAddress, (transaction.amount)).change(User.doge_address).fee(fee)

It works fine in the vite development service, but an error occurs after building:

image

tower1229 avatar Sep 05 '24 07:09 tower1229

also got the same question

fakeou avatar Jan 16 '25 15:01 fakeou

This is still broken on on bitcore-lib as well. Any help? Makes the library unusable in Vite.

andrewrjohn avatar Mar 05 '25 18:03 andrewrjohn

I don't have a vite environment set up to come up with a fix for this. I don't know what vite's doing during the build to break this. If anyone is able to dig in and figure out why this breaks in vite, I'll be happy to discuss a fix

kajoseph avatar Mar 06 '25 17:03 kajoseph