Cannot generate code, build_runner giving strange error · Issue #56779 · flutter/flutter

I am having an issue with flutter build_runner. It's failing to generate files when running watch or build. t.dart import 'package:json_annotation/json_annotation.dart'; part 't.g.d...