-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mounted IndexedDB file system doesn't support writeFileSync
#315
Comments
I've created a jsfiddle with a minimal example: https://jsfiddle.net/24vfryqs/ showing that the IndexedDB backend is not working as expected. The source is:
|
Wonder if the issue might be because you're using version 2.0.0? 1.4.3 is the last non-beta release on NPM, and changing the fiddle's cdnjs link from 2.0.0 to 1.4.3 seems to result in correct behavior. |
@soapdog Did you ever get this fixed? I have the same problem using 1.4.3 from npm. |
@mathiscode no, I never got this to work. In the end, I realised my app could be stateless and removed all the persistence code from it. I still use BrowserFS in it, but it is all in-memory storage. |
Does it work when using the latest dev build of BrowserFS? (you will need to build from source) |
writeFileSync
Please use zen-fs/core#20 |
I have a filesystem initialized with
I can read and write normally to
/tmp
and read from/templates
but attempts to write using eitherwriteFileSync
orwriteFile
to any of the IndexedDB paths fail with error:I'm building with rollup, and I didn't expected this to fail. Trying to use "LocalStorage" as a backend works but since I'm writing large files, I'd rather use IndexedDB.
The text was updated successfully, but these errors were encountered: