PinataCloud / Pinata-SDK

Official SDK for the Pinata IPFS service
MIT License
273 stars 67 forks source link

Can't resolve 'fs' while importing @pinata/sdk in next js #148

Closed shravanandoria closed 5 months ago

rommel-pinata commented 1 year ago

CUrrently checking this issue.

stevedylandev commented 5 months ago

Hey there! This can happen if you are importing to a client side component or page vs a server side component. You can check out a template we have for Next.js here: https://github.com/PinataCloud/pinata-app-router-starter

We will be rewriting the SDK which should help resolve this in the future