Skip to content

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

Open
@ECBSJ

Description

@ECBSJ

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions