Describe the bug
`Uncaught (in promise) NoModificationAllowedError: Failed to execute 'createSyncAccessHandle' on 'FileSystemFileHandle': Access Handles cannot be created if there is another open Access Handle or Writable stream associated with the same file.`
But everything was normal in version 0.4.1
include code
// my-pglite-worker.js
import { PGlite } from '@electric-sql/pglite'
import { worker } from '@electric-sql/pglite/worker'
worker({
async init() {
// Create and return a PGlite instance
return new PGlite('opfs-ahp://path/to/datadir/')
},
})
import { PGliteWorker } from '@electric-sql/pglite/worker'
const pg = new PGliteWorker(
new Worker(new URL('./my-pglite-worker.js', import.meta.url), {
type: 'module',
}),
)
Logs
Uncaught (in promise) NoModificationAllowedError: Failed to execute 'createSyncAccessHandle' on 'FileSystemFileHandle': Access Handles cannot be created if there is another open Access Handle or Writable stream associated with the same file.
Details
Other
Everything was normal in version 0.4.1.
Describe the bug
But everything was normal in version 0.4.1
include code
Logs
Details
Other
Everything was normal in version 0.4.1.