-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Handle semver issue in vue-router #2606
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
Comments
Since I was kind of asked for this by vue-router, here is a test project for reproduction: https://github.com/soletan/vue-router-test Steps to reproduce
In 4 and 5 vuepress is forced to use vue-router 3.1.6 instead of 3.4.3 matching its selector ^3.1.3. Since everything is kept as before the only thing changing is vue-router library. |
Okay, this issue is a total blocker ... built website doesn't work due to having unhandled promise rejections. Two weeks of working on an attempt to have a website built with Vuepress is currently wasted. A popup meant to appear on certain conditions only keeps appearing each and every time the built site is opened, even though poorman's debugging is revealing that every condition in a v-if is meant to hide that popup, but in build's SSR something is causing it to be revealed and there is no app fully taking over control after the HTML has been loaded into browser for I can't even click on a button of that popup. When I try to prevent popup from being revealed in SSR it won't show up at runtime in browser either. FWIW this SSR feature is broken right now. Everything is working fine in dev mode. So I don't know what Vuepress is doing here. I can't dive into another application just to find out what is going on. The demonstration provided in my previous comment is pretty simple. So please, could someone with proper skills in developing VuePress have a look into this issue and tell me what is causing those rejections? Why is vuepress having issues with properly integrating vue-router? Why are you exposing router as part of a custom theme's setup function if it isn't fully usable. Just a short note in documentation would help ... Haven't been this much frustrated with regards to Vue.js and its ecosystem for years now. |
Bug report
Steps to reproduce
next()
handler with URL.vuepress build
.Actual repro: https://github.com/soletan/vue-router-test
What is expected?
Build should succeed.
What is actually happening?
Build fails due to some pageMeta being undefined. In addition there are unhandled promise rejections logged as errors.
Other relevant information
Output of
npx vuepress info
in my VuePress project:The text was updated successfully, but these errors were encountered: