jvilk / BrowserFS

BrowserFS is an in-browser filesystem that emulates the Node JS filesystem API and supports storing and retrieving files from various backends.
Other
3.07k stars 218 forks source link

Getting Error: Initialize BrowserFS with a file system using BrowserFS.initialize(filesystem) #280

Closed JohnAllen closed 5 years ago

JohnAllen commented 5 years ago

I've gone with the webpack approach in the README because I couldn't get the index.html configure approach working.

I have fs available in my React project. and there is an initialize method but everything I pass to it fails to work.

I have tried seemingly every combination of initialize to no avail.

fs.initialize('LocalStorage') fs.initialize({fs:'LocalStorage'}) etc.

Anyone have a working webpack + React example? I went exactly by the README.