bitcoinjs-lib icon indicating copy to clipboard operation
bitcoinjs-lib copied to clipboard

Can't import as a .ts file after running browserify?

Open ECBSJ opened this issue 9 months ago • 1 comments
trafficstars

In the readme, it suggests to run the below commands to compile just this library and its dependencies into a single JavaScript file, and then import it as a .js file:

Image

The problem is, I am trying to use it in a Vue application using Typescript. I get the inline error of Could not find a declaration file for module '../../bitcoinjs-lib'...implicitly has an 'any' type in my import statement.

Is there a way to compile the library as a single Typescript file?

ECBSJ avatar Feb 16 '25 14:02 ECBSJ