You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.
I'm new to dart and new to flutter, but I know that flutter doesn't work with mirrors, and that dartson doesn't require mirrors. However, I don't know how to use dartson with flutter. I get the following errors:
$ flutter build apk
Building APK in release mode (android-arm-release)...
Dart snapshot generator failed with exit code 254
Errors encountered while loading: 'dart:mirrors': error: line 1 pos 1: unexpected token 'Unhandled'
Unhandled exception:
^
'package:dartson/dartson.dart': error: line 10 pos 1: library handler failed
import 'dart:mirrors';
^
'file:///home/droundy/src/student-pairs/lib/main.dart': error: line 5 pos 1: library handler failed
import 'package:dartson/dartson.dart';
^
Error: 'dart:mirrors': error: line 1 pos 1: unexpected token 'Unhandled'
Unhandled exception:
^
'package:dartson/dartson.dart': error: line 10 pos 1: library handler failed
import 'dart:mirrors';
^
'file:///home/droundy/src/student-pairs/lib/main.dart': error: line 5 pos 1: library handler failed
import 'package:dartson/dartson.dart';
^
Failed to build AOT snapshot
I expect that this is simple to manage, but am not sure how to tell flutter that I want the non-mirrors version of dartson.
Thanks!
The text was updated successfully, but these errors were encountered:
There's currently no option to use dartson with flutter, because dartson relies on pub transformers in order to provide a static (no mirrors) way. Take a look at built_value and it's serialization implementation.
I'm new to dart and new to flutter, but I know that flutter doesn't work with mirrors, and that dartson doesn't require mirrors. However, I don't know how to use dartson with flutter. I get the following errors:
I expect that this is simple to manage, but am not sure how to tell flutter that I want the non-mirrors version of dartson.
Thanks!
The text was updated successfully, but these errors were encountered: