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
I'm encountering an issue when using both json_serializable and auto_route in my Flutter project. When I run flutter pub run build_runner build --delete-conflicting-outputs, I receive the following error:
It seems that json_serializable is trying to parse the $AppRouter class, which is generated by auto_route, and this is causing the error. I've tried excluding the auto_router.dart file from analysis in analysis_options.yaml, but this doesn't seem to affect build_runner or json_serializable.
Hello,
I'm encountering an issue when using both
json_serializable
andauto_route
in my Flutter project. When I runflutter pub run build_runner build --delete-conflicting-outputs
, I receive the following error:It seems that
json_serializable
is trying to parse the$AppRouter
class, which is generated byauto_route
, and this is causing the error. I've tried excluding theauto_router.dart
file from analysis inanalysis_options.yaml
, but this doesn't seem to affectbuild_runner
orjson_serializable
.Here is the code for my
auto_router.dart
file:In addition to the above information, I am currently using Flutter SDK version 3.16.8 and Dart SDK version 3.2.5.
This is the repository in question:
https://github.com/terisuke/flutter_news
I would appreciate any guidance on how to resolve this issue. Thank you.
The text was updated successfully, but these errors were encountered: