Closed romancores closed 1 year ago
Hello @romancores, How did you solve this? I'm getting the exact same error. It started to happen after I upgraded Flutter to 3.16. Was holding on to 3.7 for quite some time. The weird thing is that happens only for one single class.
OK the problem was an anonymous extension in that particular file. "analyzer" was throwing an error because of that.
@Ashkan-Sarlak How did you fix this? In my case, flutter analyze
does not throw any error when run directly from terminal but this error only shows up when generating code for mobx files. I have anonymous extension using !
too.
@therohansanap Just don't use an anonymous extension in a mobx store file. Put it in a separate file.
Hello mobx team! Facing the exception on a file which throws this only at one file. Other files work well, but this one not
the code example in spinner_screen_vm.dart
using
analyzer: ^5.13.0
build_runner: ^2.4.4 hive_generator: ^2.0.0 injectable_generator: ^2.1.4 mobx_codegen: ^2.3.0 retrofit_generator: ^6.0.0+1
flutter doctor: