-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Inconsistent Router Injection Error with Additional Resolvers #2047
Comments
Quite similar to #1925. It will be easier to debug if we have the stack trace |
Here's a stack trace:
I revisited my project and it somehow works. Then I deleted The exception is at: const useNavState = createSharedComposable( () => {
const router = useRouter();
const currentRoute = useRoute();
const query = computed( () => {
router.currentRoute.value.query; // exception here
return new URLSearchParams(location.search);
}
); |
Just discovered that this bug will disappear once I clear browser cache and refresh for several times. It will occur again if I delete |
Describe the bug
When using additional component resolvers, the application becomes blank after a while, with the following browser console errors:
This is very weird problem. Sometimes the slides work fine, everything including the PrimeVue components are displayed correctly, but after a few seconds app div will become blank. Sometimes the slides don't load at all.
Minimal reproduction
Note that this problem is not reproduced consistently. Here's what my customization looks like:
npm install slidev-addon-prime
slides.md
:slidev
.Potential Causes
Interference between the router injection and other resolvers.
The text was updated successfully, but these errors were encountered: