Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
That's a strange way to be importing a library. Why don't you install it using a package manager (npm/yarn)? It comes with type definitions which you likely haven't included in your way of importing it.
import * as bitcoin from "../../../../bitcoinjs-lib"
It's importing to the browser as I am using it in a React app