New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
could not generate main.reflectable.dart and need a simple mobx example #27
Comments
Hey, welcome!
|
It is working now. There was a trivial error in build.yaml file. Thank you again. |
I am having a similar issue here. Inspite of a correct |
Well, there should be something different in a setup. Since latest lib version is built successfully on GitHub actions, including unit tests. |
This is the class I'm trying to serialize. Not sure why it is not getting picked up. Rest of the setup is as outlined in the docs. @jsonSerializable
class FeedItem = _FeedItem with _$FeedItem;
@jsonSerializable
abstract class _FeedItem with Store {
_FeedItem({this.message, this.user, this.timestamp, this.type});
final String message;
final String user;
final String type;
final DateTime timestamp;
}
|
Can you please setup a sample repository to replicate the issue, this will surely speeds up resolution. At the moment I don't see anything suspicious. |
@pavanpodila, can you try to reference/instanciate a Feeditem() somewhere in your project and relaunch the build. Does it change anything ? May have encounter this also. Should be easy enough to replicate if that the case. |
Nothing changes even when it is referenced 😟 |
Try changing And check if it does appear in your |
Tried that, but still doesn't seem to generate the |
@pavanpodila Here is the minimal working repo with your case. |
Thanks @k-paxian ! I'll see what I'm doing different in my repo. Looks like an env issue at my end. |
Hello,
Thanks for the great library,
I couldn't generate main.reflectable.dart file. I tried to follow the basic setup. I pasted all the additional code in my main.dart file and run the command
pub run build_runner build
. I get the following error:'pub' is not recognized as an internal or external command, operable program or batch file.
flutter pub run build_runner build
command works but it does not generate main.reflectable.dart file.Besides, I need a very simple mobx example with a separate store. I am especially interested in very nested json deserialization. This could be used for example json: https://jsonplaceholder.typicode.com/posts
I already starred the repo. Thank you very much in advance.
The text was updated successfully, but these errors were encountered: