Skip to content

Can't initialize db except on web: Unsupported powersync extension version. Need ˆ0.2.0, got 0.1.6/14f7c2b0* #156

Closed
@sbpro86

Description

@sbpro86

Hello,

I have implemented powersync with success a time ago and not used much because the web was not supported.

Today I tried to update it and use in web and all worked fine. that's great ! But when tried to test mobile platforms (iOS & Android) while using the correct paths as in the docs the app in hanging on db.initialize() while the path is correct.

If I remove the initialize part I have an error stating that "SqliteException(1): Unsupported powersync extension version. Need ˆ0.2.0, got 0.1.6/14f7c2b0".

`
Future getDatabasePath() async {
String path;

if (!kIsWeb) {
final dir = await getApplicationSupportDirectory();
path = join(dir.path, 'noqta-1.db');
} else {
path = 'noqta.db';
}

Logger().d('[PowerSync] Database path: $path');
return path;
}
`

Tried version 1.7.0, 1.6.3 and 1.5.5 and still the same problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions