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
Failed to build build_runner:build_runner:
../../../../AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/build_resolvers-2.2.0/lib/src/resolver.dart:195:25: Error: The method 'unitWithPath' isn't defined for the class 'ResolvedL
ibraryResult'.
'ResolvedLibraryResult' is from 'package:analyzer/dart/analysis/results.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/analyzer-5.2.0/lib/dart/analysis/results
.dart').
Try correcting the name to the name of an existing method, or defining a method named 'unitWithPath'.
return result.unitWithPath(element.source.fullName)?.unit;
^^^^^^^^^^^^
pub finished with exit code 1
Unhandled exception:
command finished with exit code 1
flutter 3.7.7
dart 2.19.4
The text was updated successfully, but these errors were encountered:
i had a similar issue, i solved it by updating analyzer to the latest version
on this files:
dependencies_module_generator/generator/pubspec.yaml
factory_widget_generator/generator/pubspec.yaml
scope_generator/generator/pubspec.yaml
PS C:\Users\yzx\Downloads\telegram-flutter-master\telegram-flutter-master\tools> .\gen.bat
run gen
start: app
start: app_controller
start: chat_actions_panel
start: chat_kit
1/39: chat_actions_panel
start: core_presentation
2/39: app_controller
start: core_ui_jugger
3/39: chat_kit
start: coreui
Waiting for another flutter command to release the startup lock...
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
Failed to build build_runner:build_runner:
../../../../AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/build_resolvers-2.2.0/lib/src/resolver.dart:195:25: Error: The method 'unitWithPath' isn't defined for the class 'ResolvedL
ibraryResult'.
.dart').
Try correcting the name to the name of an existing method, or defining a method named 'unitWithPath'.
return result.unitWithPath(element.source.fullName)?.unit;
^^^^^^^^^^^^
pub finished with exit code 1
Unhandled exception:
command finished with exit code 1
flutter 3.7.7
dart 2.19.4
The text was updated successfully, but these errors were encountered: