zubairehman / flutter_boilerplate_project

A boilerplate project created in flutter using MobX and Provider.
http://zubairehman.surge.sh/
MIT License
2.26k stars 908 forks source link

The getter 'externalKeyword' isn't defined for the class 'TopLevelVariableDeclaration' #70

Closed codemeall closed 4 years ago

codemeall commented 4 years ago

in running this in mac : flutter packages pub run build_runner build --delete-conflicting-outputs

`Failed to precompile build_runner:build_runner: ../../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/dart_style-1.3.7/lib/src/source_visitor.dart:2618:21: Error: The getter 'externalKeyword' isn't defined for the class 'TopLevelVariableDeclaration'.

anyone here know's the root cause of this? any help or suggestion is appreciated

codemeall commented 4 years ago

it got resolved for me when I move 'analyzer' from dependency_overrides to dev_dependencies in my machine.

hienhodeveloper commented 4 years ago

it got resolved for me when I move 'analyzer' from dependency_overrides to dev_dependencies in my machine.

Thank you!!!!! I did it

mthinyane commented 4 years ago

it got resolved for me when I move 'analyzer' from dependency_overrides to dev_dependencies in my machine.

Thanks! This solution works...