google / json_serializable.dart

Generates utilities to aid in serializing to/from JSON.
https://pub.dev/packages/json_serializable
BSD 3-Clause "New" or "Revised" License
1.55k stars 395 forks source link

I get an error when I run flutter pub run build_runner build for the second time #1330

Closed AK1118 closed 1 year ago

AK1118 commented 1 year ago

Deprecated. Use dart run instead. Null check operator used on a null value package:pub/src/package_graph.dart 70:55 PackageGraph.transitiveDependencies.. dart:core Iterable.toSet package:pub/src/package_graph.dart 70:58 PackageGraph.transitiveDependencies. package:pub/src/utils.dart 661:41 mapMap package:pub/src/package_graph.dart 67:11 PackageGraph.transitiveDependencies package:pub/src/package_graph.dart 96:12 PackageGraph.isPackageMutable package:pub/src/executable.dart 96:33 runExecutable ===== asynchronous gap =========================== package:pub/src/command/run.dart 100:20 RunCommand.runProtected This is an unexpected error. The full log and other details are collected in:

C:\Users\15817\AppData\Local\Pub\Cache\log\pub_log.txt

Consider creating an issue on https://github.com/dart-lang/pub/issues/new and attaching the relevant parts of that log file.

AK1118 commented 1 year ago

Finished by: https://github.com/FlutterGen/flutter_gen/issues/373#issuecomment-1521903743