Skip to content

Module not found: Can't resolve 'node:fs' #38

@ClusterH

Description

@ClusterH

After install this package in react.js project, got error during compile like that:

Failed to compile.

./node_modules/write-json-file/index.js
Module not found: Can't resolve 'node:fs' in 'D:\MY_DAILY\Projects\ReactProject\node_modules\write-json-file'

Tried add something to package.json, but does not effect, still same.

"browser": { "crypto": false, "fs": false, "path": false, "os": false, "net": false, "stream": false, "tls": false },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions