Skip to content

Commit 71db1e7

Browse files
committed
Mention metro workaround for op-sqlite
1 parent 6ebaabe commit 71db1e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/powersync-op-sqlite/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ Follow the installation instructions for the [React Native SDK](https://github.c
1616
npx expo install @powersync/op-sqlite
1717
```
1818

19+
When using this package without a frameowrk like Expo, we recommend adding [this metro config](https://github.com/powersync-ja/powersync-js/tree/main/packages/react-native#metro-config-optional)
20+
to avoid issues related to bundling PowerSync.
21+
Without it, you may be getting `TypeError: Cannot read property 'PowerSyncDatabase' of undefined` or similar errors.
22+
1923
### Install Peer Dependency:
2024

2125
This SDK currently requires `@op-engineering/op-sqlite` as a peer dependency.

0 commit comments

Comments
 (0)