Last 12 weeks ยท 0 commits
4 of 6 standards met
Bug in returns an empty string when a relative path resolves to or above the root. Reproduction: Root cause: When segments pop all entries off the internal stack, on a single-element '''/'src/util/path.jstest/unit/specs/path.spec.js` โ all red before the fix, all green after. AI-assisted: this PR was prepared with the help of an AI coding assistant.
What problem does this feature solve? Currently, route's component can be null and it give no information and error. Provide information or raising error can help users to catch they have some import issues when they use So if is null, they will know what went wrong easier. What does the proposed API look like? Raise error when component is null or log info message.
Repository: vuejs/vue-router. Description: ๐ฆ The official router for Vue 2 Stars: 18876, Forks: 4971. Primary language: JavaScript. Languages: JavaScript (97.1%), TypeScript (2.6%), Shell (0.3%). License: MIT. Homepage: http://v3.router.vuejs.org/ Topics: javascript, router, vue. Latest release: v3.6.5 (3y ago). Open PRs: 59, open issues: 66. Last activity: 4mo ago. Community health: 50%. Top contributors: posva, yyx990803, dependabot[bot], fnlctrl, Alex-Sokolov, MachinisteWeb, kazupon, Jinjiang, nicodevs, LinusBorg and others.