bitcore
bitcore copied to clipboard
bitcore-lib-doge got error: Right-hand side of 'instanceof' is not callable
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:
also got the same question
This is still broken on on bitcore-lib as well. Any help? Makes the library unusable in Vite.
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