powersync-ja/powersync.dart

Please update 'sqlite_async' dependency

Closed this issue · 8 comments

Hi

It looks like you are using old dependency "sqlite_async: ^0.8.3" which based on "web: ^0.5.1" that is imcompatible to be used with another "auto_route: ^9.2.2" dependency which based on "web: ^1.0.0"

could you please update sqlite_async to 0.9.0 version?

Hi @AlexanderBykin please share a working set of dependencies. when I try sqllite_async 0.9.0, I get this error...

Resolving dependencies...
Because powersync 1.8.2 depends on sqlite_async ^0.8.3 and no versions of powersync match >1.8.2 <2.0.0, powersync ^1.8.2 requires sqlite_async ^0.8.3.
So, because your_appp depends on both powersync ^1.8.2 and sqlite_async ^0.9.0, version solving failed.

@JavascriptMick You should ask not me, but the author of this library, he is the one who should decide this question

@mugikhan can you please provide working solution?

Hey @AlexanderBykin, we currently do not support web v1.0.0 in powersync. Updating that version conflicts with other dependencies such as drift. We are aware of this and will make the required updates to support package:web v1.0.0. In the meantime, please use auto_route: 9.2.0 or lower.

The same happens with flutter_quill for version > 10.5.17

Not a fix, but, if you are not using web builds, this let you compile the app (tested on Android and iOS):

dependency_overrides:
  web: 1.0.0

Hey @AlexanderBykin @JavascriptMick @selimb86 sqlite_async has been updated to version 0.9.0 in powersync: ^1.8.6.

Huge thanks to @davidmartos96 for creating the respective PRs across multiple projects to get this done.