-
Couldn't load subscription status.
- Fork 3.5k
Use correct path to typed routing library #2381
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ class GoRouterGenerator extends GeneratorForAnnotation<void> { | |
|
|
||
| @override | ||
| TypeChecker get typeChecker => const TypeChecker.fromUrl( | ||
| 'package:go_router/src/route_data.dart#TypedGoRoute', | ||
| 'package:go_router/src/typed_routing.dart#TypedGoRoute', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typedgoroute is exposed as a public class, this should be 'package:go_router/go_router.dart#TypedGoRoute` There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, this doesn't seem to work |
||
| ); | ||
|
|
||
| @override | ||
|
|
@@ -82,5 +82,5 @@ ${getters.map((String e) => "$e,").join('\n')} | |
| } | ||
|
|
||
| const TypeChecker _goRouteDataChecker = TypeChecker.fromUrl( | ||
| 'package:go_router/src/route_data.dart#GoRouteData', | ||
| 'package:go_router/src/typed_routing.dart#GoRouteData', | ||
| ); | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kevmoo Do you know if we change this to
package:go_router/go_router.dart#TypedGoRouteinstead? go_router.dart exports this library.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't seem to work...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note also that changing
go_router_buildercan't be a complete fix for the issue created by 4.2.1; a complete fix must be ingo_router.Versions of
go_router_builderthat have thissrcdependency have already been published and are in use in the wild, and they depend ongo_router: ^4.0.0. People using those existing versions can get new versions ofgo_routerwithout getting new versions ofgo_router_builder, so unless you are comfortable breaking those people by violatingsemveryou need to revert or otherwise fixgo_routerbefore publishing it again as 4.x.x.