09 March, 2021

Flutter: mobX store code generate not working

 

 mobX store code generate not working

I had a same issue and I was able to solve with following steps.

I had this problem today and put these versions and it worked, in case anyone needs

You need to follow just couple of steps. Here is my pubspec.yaml package version for the mobx

Step 1:

  • Flutter (Channel stable, 1.22.6)
  • mobx: ^1.2.1+2
  • build_runner: 1.10.1
  • mobx_codegen: ^1.1.0+1

Step 2: run following commands

  • flutter clean
  • flutter pub get
  • flutter packages upgrade
  • flutter pub run build_runner watch --delete-conflicting-outputs
I trust it will help you :)

No comments:

Post a Comment

Microservices vs Monolithic Architecture

 Microservices vs Monolithic Architecture Here’s a clear side-by-side comparison between Microservices and Monolithic architectures — fro...