@_or I’ve just gotten round to attempting to integrate the Coinbase Pro API module into my site but I’m having issues with the setup.
When I attempt to create a PublicClient object in my backend ‘coinbaseProAPIModule.jsw’ using the standard method indicated in the API docs:
const CoinbasePro = require('coinbase-pro');
const publicClient = new CoinbasePro.PublicClient();
I get the following error:
Error loading web module backend/coinbaseProAPIModule.jsw: Cannot read property 'PublicClient' of undefined
I cant seem to find a solution and I’m wondering if it could be something to do with how the node module was added to Corvid.
If I’m missing something, I’d really appreciate some pointers. It seems to me like the module hasn’t been imported correctly but I have no idea how to solve this.
Thanks