How to resolve the following in Node.js stream, fs, utils persisting even after installing packages

332 Views Asked by At

I have installed the following packages, e.g. fs, utils, and stream, although others like fs/promises cannot be installed. However, the error still persists.

Things done : I have installed the packages I have resolved them in Webpack I have changed my node version. Error persists

  1. ./node_modules/hardhat/internal/artifacts.js Module not found: Can't resolve 'fs/promises'

2./node_modules/hardhat/internal/util/fs-utils.js Module not found: Can't resolve 'fs/promises'

3./node_modules/undici/lib/core/util.js Module not found: Can't resolve 'stream/web'

4./node_modules/undici/lib/fetch/body.js Module not found: Can't resolve 'util/types'

0

There are 0 best solutions below