Open 988494 opened 1 year ago
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
i replaced analyzer: 5.2.0 with analyzer: 5.11.1
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'.
pub finished with exit code 1 Unhandled exception: command finished with exit code 1
flutter 3.7.7 dart 2.19.4