<p>When instantiating a new Psbt in my Visual Studio Code like below:</p>
<pre><code>  const psbt = new bitcoin.Psbt()
</code></pre>
<p>The variable <code>psbt</code> doesn't auto display any of its methods/properties after I add the <code>.</code> right after it. Why is this?</p>

CC BY-SA 4.0
2023-05-15T15:26:49.197Z
Can you also include the line where you import/require bitcoinjs?
Vojtěch Strnad
CC BY-SA 4.0
2023-05-16T11:05:58.827Z
`import * as bitcoin from "../../../../bitcoinjs-lib"`

It's importing to the browser as I am using it in a React app
jiamijiang
CC BY-SA 4.0
2023-05-16T15:28:18.557Z
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.
Vojtěch Strnad
<bitcoinjs><bip174-psbt>
bitcoin.Psbt doesn't auto-display its method/properties in Visual Studio Code
jiamijiang
# bitcoin.Psbt doesn't auto-display its method/properties in Visual Studio Code

(Asked by: username_0 on 2023-05-15)

When instantiating a new Psbt in my Visual Studio Code like below:
  const psbt = new bitcoin.Psbt()

The variable psbt doesn't auto display any of its methods/properties after I add the . right after it. Why is this?

**Tags:** bitcoinjs, bip174-psbt

> **Comments:**
> **username_1**: Can you also include the line where you import/require bitcoinjs?  
> **username_0**: `import * as bitcoin from "../../../../bitcoinjs-lib"`  It's importing to the browser as I am using it in a React app  
> **username_1**: 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.  

---

## 0 answers

