powersync-ja / powersync-js

SDK that enables local-first and real-time reactive apps with embedded SQLite for JavaScript clients, including React Native and Web
https://www.powersync.com
Apache License 2.0
283 stars 20 forks source link

Unsupported PowerSync Extension Version Error When Connecting via React/Web Library #329

Open RamDurgaSai opened 2 weeks ago

RamDurgaSai commented 2 weeks ago

We are encountering an issue when attempting to connect to the PowerSync server using the React/Web library. Although the connection works perfectly via the diagnostic app, it fails with the following error when trying through the React/Web library:

index.js:1
Uncaught (in promise) Error: Unsupported powersync extension version. Need ^0.2.0, got: 0.1.6/308ca1d0
    at PowerSyncDatabase._loadVersion (index.js:1:22077)
    at async PowerSyncDatabase.initialize (index.js:1:21389)
    at async PowerSyncDatabase.waitForReady (index.js:1:21073)
    at async PowerSyncDatabase.connect (index.js:1:22944)
Promise.then

Library Versions:

"@powersync/react": "^1.3.7",
"@powersync/web": "^1.3.0"
Chriztiaan commented 2 weeks ago

Hey @RamDurgaSai, what version of wa-sqlite do you have? Could you try "@journeyapps/wa-sqlite": "^0.3.0"?

RamDurgaSai commented 2 weeks ago

The Current version is

    "@journeyapps/wa-sqlite": "^0.2.0"

will try with 0.3.0 and updates you @Chriztiaan .

Thanks for quick support.

shahjahanpak commented 3 days ago

I'm getting the same error for @powersync/react-native.

Unsupported powersync extension version. Need ^0.2.0, got: 0.3.0/053f7fca

Package Version

@powersync/react-native: 1.13.0

Output of npx react-native info

System: OS: macOS 15.0 CPU: (8) arm64 Apple M1 Pro Memory: 168.72 MB / 16.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 20.15.0 path: ~/.nvm/versions/node/v20.15.0/bin/node Yarn: version: 1.22.22 path: ~/project/node_modules/.bin/yarn npm: version: 10.7.0 path: ~/.nvm/versions/node/v20.15.0/bin/npm Watchman: version: 2024.05.02.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.15.2 path: /usr/local/bin/pod SDKs: iOS SDK: Platforms:

rkistner commented 3 days ago

@shahjahanpak See #339.

shahjahanpak commented 3 days ago

@rkistner Thank you sir