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:
./node_modules/@infura/sdk/src/lib/Auth/Auth.js
./node_modules/@infura/sdk/index.js
./components/TrustScore.js
./pages/index.js

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?