Error: node:stream/promises - Error: Module build failed: UnhandledSchemeError

321 Views Asked by At
import minifyXML from 'minify-xml'

this.outputLongText = minifyXML(this.inputLongText)

When i using minify-xml then occour error:

node:stream/promises - Error: Module build failed: UnhandledSchemeError: Reading from "node:stream/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.

node:stream - Error: Module build failed: UnhandledSchemeError: Reading from "node:stream" 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.

I using node v18.17.0, angular 16.1.7. How to fix this?

0

There are 0 best solutions below