quicktype icon indicating copy to clipboard operation
quicktype copied to clipboard

[BUG]: Module build failed: UnhandledSchemeError: Reading from "node:fs" is not handled by plugins (Unhandled scheme).

Open hualigushi opened this issue 9 months ago • 1 comments

in my react web application project, i upgrade [email protected], build the project, has a error

fatal - Error: ERROR in node:fs
Module build failed: UnhandledSchemeError: Reading from "node:fs" 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.

if i use [email protected], there is no error

hualigushi avatar May 22 '25 08:05 hualigushi

This is likely caused by attempting to build the node module from a browser environment, do you have skipLibCheck enabled in your tsconfig ?

inferrinizzard avatar May 26 '25 16:05 inferrinizzard