Closed vishalrao8 closed 2 years ago
Hi @vishalrao8
Can you show the version of json_annotation
in your pubspec.lock
file?
The $checkedCreate
was introduced by json_annotation (>= 4.1.0)
and it should be brought as the transitive dependency by flutter_gen_runner
.
json_annotation:
dependency: transitive
description:
name: json_annotation
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.1"
Overriding dependency with the latest version fixed the issue but why transitive dependency didn't have the latest version by default?
json_annotation:
dependency: "direct overridden"
description:
name: json_annotation
url: "https://pub.dartlang.org"
source: hosted
version: "4.3.0"
Oh, I see: https://github.com/FlutterGen/flutter_gen/blob/e8927c0fddbeeea6ec8095fa38d907d0d3cc67e7/packages/core/pubspec.yaml#L21 Our dependency specify is bad. We should fix that.
@vishalrao8 Thanks for your report!
On running the build runner command I am getting these errors.
My dev dependencies are:
Flutter doctor result:
Commands tried:
flutter pub global activate flutter_gen