Open celvinren opened 1 year ago
This could relate to the analyzer version ... could you post the output of "dart pub get" and "dart pub upgrade"? Possibly, upgrade will fix it.
I encountered the same error. Overriding the analyzer works in the meantime.
dependency_overrides:
analyzer: 5.2.0
flutter pub run build_runner build --delete-conflicting-outputs I ran the above cmd to generate .g file 1 months ago, but now it reporting this error message. Try to do flutter clean and pub get again, but it doesn't resolve the issue.
Can anyone help me to fix this issue?
Thanks
`[INFO] Generating build script completed, took 351ms [WARNING] /Users/calvin/.pub-cache/hosted/pub.dartlang.org/built_value_generator-8.4.2/lib/src/serializer_source_library.dart:125:43: Error: The getter 'element' isn't defined for the class 'DartType'.