Skip to content

Conversation

vexdev
Copy link

@vexdev vexdev commented Sep 9, 2025

Description

Revert imports from node:fs to fs to allow the package.json directive

"browser": {
  "fs": false
}

to prevent the fs import to be packaged when building for web.

Related Issue

Fixes #2763

Motivation and Context

Fixes #2763

Previous Behaviour / Output

Builds for web were failing, unable to find node:fs

New Behaviour / Output

Builds working as expected

How Has This Been Tested?

Run a build in a sample react project with webpack

Screenshots (if appropriate):

Revert imports from node:fs to fs to allow the package.json directive
"browser": {
  "fs": false
}
to prevent the fs import to be packaged when building for web.

Fixes glideapps#2763
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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