rrousselGit / freezed

Code generation for immutable classes that has a simple syntax/API without compromising on the features.
https://pub.dev/packages/freezed
1.94k stars 237 forks source link

Exception occurs when I am run the below command #1116

Closed bajibabashaik-sayukth closed 1 month ago

bajibabashaik-sayukth commented 3 months ago

Command: flutter pub run build_runner build --delete-conflicting-outputs

Deprecated. Use dart run instead. [INFO] Generating build script completed, took 598ms [WARNING] ../../.pub-cache/hosted/pub.dev/freezed-2.5.7/lib/src/freezed_generator.dart:546:45: Error: Required named parameter 'withNullability' must be provided. .map((e) => e.getDisplayString()) ^ ../../.pub-cache/hosted/pub.dev/freezed-2.5.7/lib/src/freezed_generator.dart:547:16: Error: The argument type 'List' can't be assigned to the parameter type 'List'.

My Dart Version: Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git Framework • revision 761747bfc5 (9 weeks ago) • 2024-06-05 22:15:13 +0200 Engine • revision edd8546116 Tools • Dart 3.4.3 • DevTools 2.34.3

I am using latest version of the Freezed 2.5.7

tanvi12 commented 1 month ago

Any update on this?

rrousselGit commented 1 month ago

Make sure your dependencies are up-to-date. Run dart pub upgrade. That generally should fix it.