TypeScript SDK not working
M
Mihael Petac
I'm trying to implement Marginfi through the
marginfi-client-v2
and mrgn-common
packages, but I get the following error when initializing MarginfiClient:`.../node_modules/buffer-layout/lib/Layout.js:1692
dest[clo.property] = this.defaultLayout.decode(b, offset + contentOffset);
TypeError: Cannot read properties of null (reading 'property')`
I am following the tutorial provided in the docs: https://docs.marginfi.com/ts-sdk