stoXmodS
Convex Community2y ago
2 replies
stoXmod

Buffer not defined

Hi guys, I'm developing a mobile app with a Convex backend and have written functions using the bitcoinjs-lib library. When pushing these functions, I encounter a 'Buffer undefined' error.

I've tried adding import
{ Buffer } from "buffer"; 
globalThis.Buffer = Buffer;


to the top of my file, which resolves the issue without using bitcoin.intEccLib. However, I need to initialize a PSBT for my application.

Is there a workaround for this issue?
Screenshot_2024-10-08_at_3.53.50_PM.png
Was this page helpful?