Closed analistacarlosh closed 5 years ago
@analistacarlosh i have updated the mobX version, please try now and let me know if problem still persists
Hello @zubairehman, I will check here now.
Thank you so much.
I think that I'm getting the same issue
lib/di/components/app_component.dart:7:8: Error: Error when reading 'lib/di/components/app_component.inject.dart': No such file or directory
import 'app_component.inject.dart' as g;
^
lib/di/components/app_component.dart:20:20: Error: Getter not found: 'AppComponent$Injector'.
return await g.AppComponent$Injector.create(
^^^^^^^^^^^^^^^^^^^^^
lib/ui/home/home.dart:65:11: Error: No named parameter with the name 'name'.
name: 'error',
^^^^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_mobx-0.3.4+2/lib/src/observer.dart:16:3: Context: Found this candidate, but the
arguments don't match.
Observer({Key key, @required this.builder})
^^^^^^^^
lib/stores/post/post_store.g.dart:23:10: Error: The method 'checkIfStateModificationsAreAllowed' isn't defined for the class 'ReactiveContext'.
- 'ReactiveContext' is from 'package:mobx/src/core.dart' ('/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/mobx-0.3.10/lib/src/core.dart').
Try correcting the name to the name of an existing method, or defining a method named 'checkIfStateModificationsAreAllowed'.
.checkIfStateModificationsAreAllowed(_$postsListAtom);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/stores/post/post_store.g.dart:38:27: Error: The method 'checkIfStateModificationsAreAllowed' isn't defined for the class 'ReactiveContext'.
- 'ReactiveContext' is from 'package:mobx/src/core.dart' ('/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/mobx-0.3.10/lib/src/core.dart').
Try correcting the name to the name of an existing method, or defining a method named 'checkIfStateModificationsAreAllowed'.
_$successAtom.context.checkIfStateModificationsAreAllowed(_$successAtom);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/stores/post/post_store.g.dart:53:27: Error: The method 'checkIfStateModificationsAreAllowed' isn't defined for the class 'ReactiveContext'.
- 'ReactiveContext' is from 'package:mobx/src/core.dart' ('/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/mobx-0.3.10/lib/src/core.dart').
Try correcting the name to the name of an existing method, or defining a method named 'checkIfStateModificationsAreAllowed'.
_$loadingAtom.context.checkIfStateModificationsAreAllowed(_$loadingAtom);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/stores/form/form_store.g.dart:40:10: Error: The method 'checkIfStateModificationsAreAllowed' isn't defined for the class 'ReactiveContext'.
- 'ReactiveContext' is from 'package:mobx/src/core.dart' ('/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/mobx-0.3.10/lib/src/core.dart').
Try correcting the name to the name of an existing method, or defining a method named 'checkIfStateModificationsAreAllowed'.
.checkIfStateModificationsAreAllowed(_$postsListAtom);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/stores/form/form_store.g.dart:56:10: Error: The method 'checkIfStateModificationsAreAllowed' isn't defined for the class 'ReactiveContext'.
- 'ReactiveContext' is from 'package:mobx/src/core.dart' ('/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/mobx-0.3.10/lib/src/core.dart').
Try correcting the name to the name of an existing method, or defining a method named 'checkIfStateModificationsAreAllowed'.
.checkIfStateModificationsAreAllowed(_$userEmailAtom);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/stores/form/form_store.g.dart:71:28: Error: The method 'checkIfStateModificationsAreAllowed' isn't defined for the class 'ReactiveContext'.
- 'ReactiveContext' is from 'package:mobx/src/core.dart' ('/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/mobx-0.3.10/lib/src/core.dart').
Try correcting the name to the name of an existing method, or defining a method named 'checkIfStateModificationsAreAllowed'.
_$passwordAtom.context.checkIfStateModificationsAreAllowed(_$passwordAtom);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/stores/form/form_store.g.dart:87:10: Error: The method 'checkIfStateModificationsAreAllowed' isn't defined for the class 'ReactiveContext'.
- 'ReactiveContext' is from 'package:mobx/src/core.dart' ('/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/mobx-0.3.10/lib/src/core.dart').
Try correcting the name to the name of an existing method, or defining a method named 'checkIfStateModificationsAreAllowed'.
.checkIfStateModificationsAreAllowed(_$confirmPasswordAtom);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/stores/form/form_store.g.dart:102:27: Error: The method 'checkIfStateModificationsAreAllowed' isn't defined for the class 'ReactiveContext'.
- 'ReactiveContext' is from 'package:mobx/src/core.dart' ('/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/mobx-0.3.10/lib/src/core.dart').
Try correcting the name to the name of an existing method, or defining a method named 'checkIfStateModificationsAreAllowed'.
_$successAtom.context.checkIfStateModificationsAreAllowed(_$successAtom);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/stores/form/form_store.g.dart:117:27: Error: The method 'checkIfStateModificationsAreAllowed' isn't defined for the class 'ReactiveContext'.
- 'ReactiveContext' is from 'package:mobx/src/core.dart' ('/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/mobx-0.3.10/lib/src/core.dart').
Try correcting the name to the name of an existing method, or defining a method named 'checkIfStateModificationsAreAllowed'.
_$loadingAtom.context.checkIfStateModificationsAreAllowed(_$loadingAtom);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/stores/form/form_store.g.dart:246:10: Error: The method 'checkIfStateModificationsAreAllowed' isn't defined for the class 'ReactiveContext'.
- 'ReactiveContext' is from 'package:mobx/src/core.dart' ('/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/mobx-0.3.10/lib/src/core.dart').
Try correcting the name to the name of an existing method, or defining a method named 'checkIfStateModificationsAreAllowed'.
.checkIfStateModificationsAreAllowed(_$userEmailAtom);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/stores/form/form_store.g.dart:261:28: Error: The method 'checkIfStateModificationsAreAllowed' isn't defined for the class 'ReactiveContext'.
- 'ReactiveContext' is from 'package:mobx/src/core.dart' ('/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/mobx-0.3.10/lib/src/core.dart').
Try correcting the name to the name of an existing method, or defining a method named 'checkIfStateModificationsAreAllowed'.
_$passwordAtom.context.checkIfStateModificationsAreAllowed(_$passwordAtom);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/stores/form/form_store.g.dart:277:10: Error: The method 'checkIfStateModificationsAreAllowed' isn't defined for the class 'ReactiveContext'.
- 'ReactiveContext' is from 'package:mobx/src/core.dart' ('/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/mobx-0.3.10/lib/src/core.dart').
Try correcting the name to the name of an existing method, or defining a method named 'checkIfStateModificationsAreAllowed'.
.checkIfStateModificationsAreAllowed(_$confirmPasswordAtom);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/stores/error/error_store.g.dart:23:10: Error: The method 'checkIfStateModificationsAreAllowed' isn't defined for the class 'ReactiveContext'.
- 'ReactiveContext' is from 'package:mobx/src/core.dart' ('/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/mobx-0.3.10/lib/src/core.dart').
Try correcting the name to the name of an existing method, or defining a method named 'checkIfStateModificationsAreAllowed'.
.checkIfStateModificationsAreAllowed(_$errorMessageAtom);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/stores/error/error_store.g.dart:39:10: Error: The method 'checkIfStateModificationsAreAllowed' isn't defined for the class 'ReactiveContext'.
- 'ReactiveContext' is from 'package:mobx/src/core.dart' ('/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/mobx-0.3.10/lib/src/core.dart').
Try correcting the name to the name of an existing method, or defining a method named 'checkIfStateModificationsAreAllowed'.
.checkIfStateModificationsAreAllowed(_$showErrorAtom);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
Failed to build bundle.
Error launching application on iPhone 11 Pro Max.```
Any advice?
Try upgrading flutter, make sure you are using v1.12 and dart 2.7
Let me know if issue still persists.
I'm already using:
Flutter 1.12.13+hotfix.5
Dart SDK 2.7
I just cloned the project and its working perfectly fine for me. Please make sure you followed the steps mentioned here to clone and build the project: https://github.com/zubairehman/flutter-boilerplate-project#how-to-use
@zubairehman It worked, it was my fault thanks a lot
Glad to hear it worked :)
Hello, thank you so much for the boilerplate-project,
I'm trying to install the project and I'm getting this error below: Have you got this error? Thank you for your help.
Error: