Comments (8)
@andrelrf1 @ulisseshen @Heatclift
This is not a bug in mobx, but depending on your code, build_runner may not work. In my experience, I've had no problems using the libraries mentioned above. I can't help you without reproducible source code.
See below to help you resolve the issue.
https://github.com/dart-lang/build/blob/master/build_config/README.md#adjusting-builder-ordering
dart-lang/build#2701
trevorwang/retrofit.dart#578
from mobx.dart.
For anyone coming across this issue who does not get the - relatively sparse - docs about adjusting the build order, add this to your build.yaml file:
global_options:
json_serializable:json_serializable:
runs_before:
- mobx_codegen:mobx_generator
Replace the reference to json_serialization with the package and builder you are using.
from mobx.dart.
Same issue here, on our case, it puts "InvalidType" instead of "AppLifecycleState" or "Size".
from mobx.dart.
from mobx.dart.
Same issue here, with type AppLocalizations
from the package I10n import 'package:flutter_gen/gen_l10n/app_localizations.dart';
from mobx.dart.
@ulisseshen
https://github.com/FlutterGen/flutter_gen/blob/main/packages/runner/build.yaml
global_options:
flutter_gen_runner:
runs_before:
- mobx_codegen:mobx_generator
from mobx.dart.
Thanks guys, this really worked! Sorry for the delay in responding.
from mobx.dart.
I think we should make a guide for this on the website...can you please make a short PR for this ? 💯
from mobx.dart.
Related Issues (20)
- Unable to use MultiReactionBuilder HOT 3
- [question] when is it mandatory to use runInAction
- Issue In ObservableList while using addAll method with iterables.
- Feature request: static analysis for empty `Observer`
- [Codegen] name used in generated mixin has to be constant to reduce compiled app size (especially important for Flutter Web) HOT 1
- [Question] No observables detected when checking in a ternary operator inside of a child parameter HOT 1
- Make the Observer to rebuild when no changes in immediate context HOT 2
- `ObservableSet` and `ObservableMap` notify all listeners when one is added with `fireImmediately: true`
- Observer widget doesnt observe the new state (Flutter web)
- late reactions not working HOT 5
- Error happened when building Observer, but it was captured since disableErrorBoundaries==true HOT 1
- Computeds not working when Observer in Observer HOT 6
- Can't use nullable type alias in computed; `null check operator used on null value` HOT 2
- ObservableMap not notifying Observer mobx 2.2.3 it was woking fine in 2.2.1 HOT 6
- feat: add requiresReaction to `Computed`
- feat: add keepAlive to Computed
- feat: add scheduler option to autorun and reaction HOT 1
- feat: add signal option to reactions
- How to wait ObservableFuture.status in function?
- testWidgets with Store not working properly HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobx.dart.