storacha/files-from-path

Uncaught (in promise) Error: Unsupported in this environment

Closed this issue · 1 comments

Hi,

I've followed several tutorials and they all failed on getFilesFromPath, logging the above error message.
I'm running a local React app on Windows.
Any help will be appreciated!

Hi @huuuda-aus
This library is to be used on Node.js environment. You can't access FS from browser, so not possible to use this module there.

Feel free to ask questions on web3.storage discord channel and let us know your use case in React to use this module. Closing this issue