Back

[Solved] Dart Functions pub.dev version issues

  • 0
  • Functions
  • Flutter
Hemish11
24 Jun, 2023, 17:07

With the new Dart 3, there has been several new updates of packages and also the minimum version has also been increased. My pubspec is:

TypeScript
dependencies:
  dart_appwrite: ^8.0.1
  freezed_annotation: ^2.2.0
  intl: ^0.18.1
  json_annotation: ^4.7.0

dev_dependencies:
  build_runner: ^2.3.3
  freezed: ^2.3.5
  json_serializable: ^6.6.2
  lints: ^2.0.1

But it is giving me error as follows:

TypeScript
Because every version of appwrite_function from path depends on dart_appwrite ^8.0.1 which depends on http >=0.13.6 <1.0.1, every version of appwrite_function from path requires http >=0.13.6 <1.0.1.
So, because http >=0.13.6 requires SDK version >=2.19.0 <3.0.0 or ^3.0.0 and open_runtimes_dart depends on appwrite_function from path, version solving failed.```
TL;DR
There was a problem with a dependency related to the Dart Functions pub.dev version. The solution was to downgrade JSON serializable to version 8.0.0.
Drake
24 Jun, 2023, 17:23

Ya use 8.0.0

Btw, it's best to use 3 back ticks with multi-line code. See https://www.markdownguide.org/extended-syntax/#syntax-highlighting

Hemish11
24 Jun, 2023, 17:29

I tried to use dart_appwrite to 8.0.0 but didnt helped

Drake
24 Jun, 2023, 17:33

Where are you seeing the error?

Hemish11
24 Jun, 2023, 17:33

in the deployment

Hemish11
24 Jun, 2023, 17:34

Heres it

Drake
24 Jun, 2023, 17:38

This still says version 8.0.1 of the dart appwrite SDK

Hemish11
24 Jun, 2023, 17:40

Heres one with 8.0.0

Drake
24 Jun, 2023, 17:56

There's a problem with one of your dependencies. You need to downgrade JSON serializable

Hemish11
24 Jun, 2023, 18:08

Thanks a lot, was able to solve it

Hemish11
24 Jun, 2023, 18:08

[Solved] Dart Functions pub.dev version issues

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more