powersync.dart icon indicating copy to clipboard operation
powersync.dart copied to clipboard

Please update 'sqlite_async' dependency

Open AlexanderBykin opened this issue 1 year ago • 5 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?

AlexanderBykin avatar Sep 13 '24 12:09 AlexanderBykin

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 avatar Sep 13 '24 14:09 JavascriptMick

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

AlexanderBykin avatar Sep 16 '24 06:09 AlexanderBykin

@mugikhan can you please provide working solution?

AlexanderBykin avatar Sep 16 '24 06:09 AlexanderBykin

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.

mugikhan avatar Sep 16 '24 09:09 mugikhan

The same happens with flutter_quill for version > 10.5.17

sbpro86 avatar Sep 18 '24 22:09 sbpro86

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

JCKodel avatar Oct 14 '24 01:10 JCKodel

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.

mugikhan avatar Oct 14 '24 13:10 mugikhan

@mugikhan @davidmartos96 nice job, thanks!

AlexanderBykin avatar Oct 14 '24 16:10 AlexanderBykin