:: فارسی ::
یه موقعی هست که دیگه دسترو flutter pub run build_runner watch کار نمیده این مشکل برای من توی فرایند کار کردن با MobX بوجود اومد و دیگه اجرا نمیشه و فایل *.g.dart را ایجاد نمیکنه . برای حل این مشکل به ترتیب زیر عمل میکنیم : اول اجرای این دستور
flutter packages pub run build_runner build --delete-conflicting-outputs
پس از اتمام دستور بالا این دستور را اجرا کرده و مشکل برطرف میشود
flutter pub run build_runner watch
:: English ::
If flutter pub run build_runner watch won't work any more the Solution is :
Step #1
> flutter packages pub run build_runner build --delete-conflicting-outputs
Rhen after the process has been finished run the second to see it works perfectly
Step #2
> flutter pub run build_runner watch
Sometimes it happens when you are working with Mobx state management or the JsonSerilizable library.
Point : make sure that the name of the *.g.dart is exact name as the file name
Ex : for user.dart the G file must have user.g.dart name
دسته بندی با بی تهایت زیردسته بندی
حذف از کالکشن با شرط در لاراول - Remove from a collection on a condition in Laravel
build ,run ,the ,pub ,runner ,dart ,build runner ,run build ,pub run ,runner watch ,flutter pub ,build runner watch ,build delete conflicting ,build runner build ,runner build delete
درباره این سایت