Comments (10)
I resolved the warning related to build_resolvers. I have deleted auto generated route dart file and rerunning the build_runner, the warning was no longer present.
from auto_route_library.
add this to build.yaml
global_options:
auto_route_generator:auto_router_generator:
runs_before:
- build_resolvers:transitive_digests
from auto_route_library.
@Thioby try updating to the latest auto_router_generator and see if you still go the issue?
from auto_route_library.
@Milad-Akarie works! This issue can be closed.
from auto_route_library.
I resolved the warning related to build_resolvers. I have deleted auto generated route dart file and rerunning the build_runner, the warning was no longer present.
Yes, re-running build-runner won't trigger the warning. But it appears again every time the source file is changed
For example, changing "@AutoRouterConfig()" to "@AutoRouterConfig(replaceInRouteName: '')" and then run build-runner will trigger the warning
from auto_route_library.
Same here.
Seems to be related to this commit. I'm still trying to understand and searching for a solution
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.4, on macOS 13.5.2 22G91 darwin-arm64, locale en-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Android Studio (version 2022.3)
from auto_route_library.
Same here and extra error:
Invalid argument(s): Missing library: package:..... :(
environment:
sdk: '>=3.1.2 <4.0.0'
dep:
auto_route: 7.8.3
devDep:
auto_route_generator: 7.3.1
build_runner: 2.3.3 (and 2.4.6 same as)
from auto_route_library.
I created reproduction repository:
https://github.com/eggp/auto_router_error (flutter 3.13.4)
reproduce:
- flutter pub get
- dart run build_runner build --delete-conflicting-outputs --verbose
rerun: dart run build_runner build --delete-conflicting-outputs --verbose
reproduce:
- change branch: ....
- delete .dart_tool directory (simulate clean install, because remove all cache!)
- flutter pub get
- dart run build_runner build --delete-conflicting-outputs --verbose
rerun: dart run build_runner build --delete-conflicting-outputs --verbose
summary:
I could not simulate the error indicated in my previous comment, but I could simulate the error indicated by others.
It seems that if there is already a cache in the .dart_tool folder, the error does not appear until a code change induces it.
This would be fine in a local build environment, but in ci, for example, we generate the routes again, where the error occurs. Or even in a monorepo environment..., and this leads to even more special errors than mine: Invalid argument(s): Missing library: package:...
from auto_route_library.
temporary solution: replace call named routing methods
from auto_route_library.
It's also happening in our project, however the generation fails.
The log is super long and ends with:
#1 LibraryContext.remove (package:analyzer/src/dart/analysis/library_context.dart:265:20)
#2 AnalysisDriver._removePotentiallyAffectedLibraries (package:analyzer/src/dart/analysis/driver.dart:1777:22)
#3 AnalysisDriver._applyPendingFileChanges (package:analyzer/src/dart/analysis/driver.dart:1243:7)
#4 AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2152:18)
<asynchronous suspension>
]
from auto_route_library.
Related Issues (20)
- pushing to same screen issue HOT 1
- New Xcode error out of the blue HOT 1
- [Bug] - Using the same Screen as Two routes results into an exception
- [QUESTION] Why RouteMatch operator == doesn't have args?
- AutoTabsRouter.pageView sibling views defaults to path '' HOT 3
- Cannot navigate to child route with @PathParam.inherit("param"). HOT 16
- Issues Implementing Custom rebuildAll and popAllAndPushAll Methods in auto_route HOT 4
- deepLinkBuilder && doubling element's tree HOT 4
- Pushing to sub-page in another tab and maintaining history? HOT 5
- deepLinkBuilder Not working on Production HOT 1
- Default function argument value has no import prefix
- Automatically back when use CustomRoute with swipe for back HOT 2
- Unable to Set Custom Transition Duration While Maintaining iOS Swipe Back Gesture HOT 4
- browser buttons navigation in flutter web HOT 5
- Got an error when navigation back web button with nested route HOT 5
- PopScope, Function(bool)? onPopInvoked, boolean value is always true for web even when canPop is false HOT 1
- Route get reset after keyboard appears HOT 1
- Bad state: Future already completed HOT 2
- Blank screen when first opening the app HOT 4
- feat: Static functions for routes on screens HOT 4
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 auto_route_library.