You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
Hi, im trying to use the pinata sdk on type script, using:
import pinataSDK from '@pinata/sdk';
import PinataClient from '@pinata/sdk';
But im encounterig the following error:
TypeError: sdk_1.default is not a constructor
Im declaring the SDK as follow:
const pinata = new pinataSDK(pinataApiKey, pinataSecretApiKey)
in my class method but it does not work.I also tried declaring a variable in my class in the constructor but that didn't worked as well...
`private pinata : pinataSDK
I tried both with pinataSDK and PinataClient but I have the same error in both cases
The text was updated successfully, but these errors were encountered: