You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have not even added any union code to my pure dart project and build_runner results in following error:
$ pub run build_runner watch
[SEVERE] Failed to snapshot build script .dart_tool/build/entrypoint/build.dart.
This is likely caused by a misconfigured builder definition.
[SEVERE] ../../../../.pub-cache/hosted/pub.dartlang.org/freezed-0.1.0/lib/src/generator.dart:97:99: Error: The method 'getDisplayString' isn't defined for the class 'DartType'. - 'DartType' is from 'package:analyzer/dart/element/type.dart' ('../../../../.pub-cache/hosted/pub.dartlang.org/analyzer-0.39.0/lib/dart/element/type.dart').Try correcting the name to the name of an existing method, or defining a method named 'getDisplayString'. for (final property in commonProperties) Getter(name: property.name, type: property.type?.getDisplayString()), ^^^^^^^^^^^^^^^^../../../../.pub-cache/hosted/pub.dartlang.org/freezed-0.1.0/lib/src/generator.dart:121:64: Error: The method 'getDisplayString' isn't defined for the class 'DartType'. - 'DartType' is from 'package:analyzer/dart/element/type.dart' ('../../../../.pub-cache/hosted/pub.dartlang.org/analyzer-0.39.0/lib/dart/element/type.dart').Try correcting the name to the name of an existing method, or defining a method named 'getDisplayString'. Property(name: property.name, type: property.type?.getDisplayString()) ^^^^^^^^^^^^^^^^../../../../.pub-cache/hosted/pub.dartlang.org/freezed-0.1.0/lib/src/generator.dart:124:55: Error: The method 'getDisplayString' isn't defined for the class 'DartType'. - 'DartType' is from 'package:analyzer/dart/element/type.dart' ('../../../../.pub-cache/hosted/pub.dartlang.org/analyzer-0.39.0/lib/dart/element/type.dart').Try correcting the name to the name of an existing method, or defining a method named 'getDisplayString'. return Property(name: p.name, type: p.type?.getDisplayString()); ^^^^^^^^^^^^^^^^../../../../.pub-cache/hosted/pub.dartlang.org/freezed-0.1.0/lib/src/templates/parameter_template.dart:43:25: Error: The method 'getDisplayString' isn't defined for the class 'DartType'. - 'DartType' is from 'package:analyzer/dart/element/type.dart' ('../../../../.pub-cache/hosted/pub.dartlang.org/analyzer-0.39.0/lib/dart/element/type.dart').Try correcting the name to the name of an existing method, or defining a method named 'getDisplayString'. type: e.type?.getDisplayString(), ^^^^^^^^^^^^^^^^../../../../.pub-cache/hosted/pub.dartlang.org/freezed-0.1.0/lib/src/templates/parameter_template.dart:51:23: Error: The method 'getDisplayString' isn't defined for the class 'DartType'. - 'DartType' is from 'package:analyzer/dart/element/type.dart' ('../../../../.pub-cache/hosted/pub.dartlang.org/analyzer-0.39.0/lib/dart/element/type.dart').Try correcting the name to the name of an existing method, or defining a method named 'getDisplayString'. type: e.type?.getDisplayString(), ^^^^^^^^^^^^^^^^
I have not even added any union code to my pure dart project and build_runner results in following error:
Same happens when I add freezed union code.
The text was updated successfully, but these errors were encountered: