Module build failed: UnhandledSchemeError: Reading from “node:fs/promises” – Angular

How to get rid of below error –
Module build failed: UnhandledSchemeError: Reading from “node:fs/promises” is not handled by plugins (Unhandled scheme).
Webpack supports “data:” and “file:” URIs by default.
You may need an additional plugin to handle “node:” URIs.
Import trace for requested module:
node:fs/promises

Below are the other details for the same –

Angular – v17
Node – v20.9.0
Webpack – 5

Imported RESPONSE in angular component, generally we shouldn’t use node dependencies on browser side, but for a use case need to do this.

Can someone help to resolve/suppress above issue during compilation.