Can't resolve 'fs'

Hello All. I am trying to use infura SDK. But in my nextjs dapp I am getting the following error. Can anyone please guide me to resolve this?

error - ./node_modules/@infura/sdk/src/services/ipfsService.js:9:0
Module not found: Can’t resolve ‘fs’

Import trace for requested module:

hi @Shashank_Mestry and welcome to our community.

Could you please share with us a repository with your code so we can further investigate the issue?