jprichardson / node-fs-extra

Node.js: extra methods for the fs object like copy(), remove(), mkdirs()
MIT License
9.44k stars 776 forks source link

Module not found issue #987

Closed shashika18923 closed 1 year ago

shashika18923 commented 1 year ago

Hi when i useing the plugin it's showing this error Module not found: Error: Can't resolve 'fs'

RyanZim commented 1 year ago

What environment are you working in? You're clearly not using standard Node.js

FreePhoenix888 commented 1 year ago

@shashika18923 Can you give more context on your problem?

RyanZim commented 1 year ago

Closing for lack of response.

shashika18923 commented 1 year ago

im using react

RyanZim commented 1 year ago

Are you building an electron app? Are you trying to use fs-extra in a browser?

shashika18923 commented 1 year ago

nope im creating a react applicatin

RyanZim commented 1 year ago

React is a UI library; what runtime/environment are you using? Is this a web app, an electron app, a react-native mobile app, or something else?

shashika18923 commented 1 year ago

web app

RyanZim commented 1 year ago

fs-extra is intended for use in Node or Electron. Web apps do not have access to the filesystem, so fs-extra does not work there.