Back

[SOLVED] Enabling Dart 3.0 runtime

  • 0
  • Functions
krunchy
10 Sep, 2023, 22:48

I do get this though: Docker Error: Unable to find image 'openruntimes/dart:v2-3.0' locally docker: Error response from daemon: manifest for openruntimes/dart:v2-3.0 not found:

TL;DR
The user was trying to enable Dart 3.0 runtime and encountered some issues. They were able to get it to build and show as ready. The solution suggested was to create a new function using the new version and syntax. There was also mention of running a migration command after upgrading to version 1.4.2. The user mentioned an error when trying to create a function without including the gzipped file and an error when using the cli init function. It was suggested to potentially use an older version of Dart. The user also mentioned an issue with a requirement of 2.19 or greater. It was mentioned that Dart
krunchy
10 Sep, 2023, 23:23

from what I'm seeing the actual image is openruntimes/dart:v3-3.0,

krunchy
10 Sep, 2023, 23:31

I'm guessing I need to recreate this function rather than just changing the runtime to 3.0.

D5
10 Sep, 2023, 23:35

In older versions (Appwrite 1.3.8) it happens exactly the same, only 2.17 works

krunchy
10 Sep, 2023, 23:36

you're saying dart 3.0 doesn't work?

D5
10 Sep, 2023, 23:36

Seems it's not updated, so maybe due to that 3.0 is not loading until the next Appwrite version πŸ€”

krunchy
10 Sep, 2023, 23:37

2.17 doesn't work with the lastest dart sdk though

krunchy
10 Sep, 2023, 23:39

hmm I will have to recheck. but I saw an issue with it requiring something that was 2.19 or greater requirement

D5
10 Sep, 2023, 23:39

Yes, there are some sight changes, so maybe you cannot use the latest features, but most things will work

D5
10 Sep, 2023, 23:41

Some pub dev libraries maybe cannot support older versions on their latest version, so you will probably need to use an older version instead of the latest one

krunchy
10 Sep, 2023, 23:41

well. it's sort of an all or nothing thing. but potentially not using the 11x version of the dart and maybe locking to 9 or something

krunchy
10 Sep, 2023, 23:42

though I deleted the function to try and recreate, and there's some changes there too. no longer can you just create a function without including the gzipped file. and trying to use the cli init function throws an error

krunchy
10 Sep, 2023, 23:42

likely because of the 3.0 runtime

D5
10 Sep, 2023, 23:43

What's your Appwrite version?

D5
10 Sep, 2023, 23:44

Also, are you sure you have latest cli version? There was an error on a regen version that in some cases it threw an error when trying to deploy functions in some cases

krunchy
10 Sep, 2023, 23:44

actually nm. even though it errored, it still added it

krunchy
10 Sep, 2023, 23:44

1.4.2

D5
10 Sep, 2023, 23:44

Is this a fresh appwrite install or you migrated from a previous version?

krunchy
10 Sep, 2023, 23:44

migrated

D5
10 Sep, 2023, 23:44

Did you run migration command after upgrading to 1.4.2?

krunchy
10 Sep, 2023, 23:47

yea

Drake
10 Sep, 2023, 23:58

Is this a new function?

Drake
11 Sep, 2023, 00:00

Yes, I suggest creating a new function to use the new version and the new function syntax

krunchy
11 Sep, 2023, 00:02

yes. I think I have it working now. at least I was able to get it to build and shows as ready. thank you.

Drake
11 Sep, 2023, 00:05

[SOLVED] Enabling Dart 3.0 runtime

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