electric-sql / electric-sql/pglite

Improve the error message when trying to use OPFS outside of a worker

Open
#201 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
16k
Forks
442
Avg merge
20h 19m
Merged PRs (30d)
7

Description

# Description
I'm running into an issue when trying to create a new database using the OPFS AHP file system. This snippet
```typescript
import { PGlite } from "@electric-sql/pglite";

const client = await PGlite.create({
dataDir: "opfs-ahp://electric.db",
relaxedDurability: true,
});
```

is producing this error

![image](https://github.com/user-attachments/assets/46785134-42c6-4748-bce8-d729b08c98b3)

I have a minimal-repro repo here that has the issue: https://github.com/TheAndrewJackson/opfs-ahp_bug_repro

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.