Skip to content
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

Fireproof v0.19.112 throws store-file not implemented #365

Open
mudcube opened this issue Nov 22, 2024 · 0 comments
Open

Fireproof v0.19.112 throws store-file not implemented #365

mudcube opened this issue Nov 22, 2024 · 0 comments

Comments

@mudcube
Copy link

mudcube commented Nov 22, 2024

When upgrading from @fireproof/core v0.19.111 to v0.19.112, attempting to store files throws store-file not implemented error.

Reproduction

Environment

  • @fireproof/core: ^0.19.112 (previously working on 0.19.111)

Steps to Reproduce

  1. Create package.json
{
  "dependencies": {
    "parcel": "^2.13.0"
  },
  "scripts": {
    "start": "parcel index.html"
  }
}
  1. Create index.html
<script src="https://cdn.jsdelivr.net/npm/@fireproof/[email protected]/index.global.js"></script>
<script src="./app.js" type="module"></script>
  1. Create app.js
(async() => {
    const testFile = new Blob(['test'], { type: 'image/png' })
    const db = Fireproof.fireproof('my-synced-db')
    const doc = {
        type: 'image-entry',
        _files: {
            'test.png': testFile
        }
    }
    await db.put(doc) // Throws error
})()
  1. Run the code

npm start

Expected Behavior

The file should be stored successfully as it did in v0.19.111.

Actual Behavior

Operation fails with error: Error: store-file not implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant