"Property 'default' does not exist on type '{}'." On Router-view and Router-link v-slot
See original GitHub issueRepository to reproduce the error https://github.com/sibyl666/issue
When v-slot is used with router-view it gives the error “Property ‘default’ does not exist on type ‘{}’.”
this wasn’t an issue a while ago with the same vue-router version on another repo, When I check the other repo it shows the same error so that’s why I think the issue is related to the extension. Repository created with
yarn create vite issue --template vue-ts
Vue Language Features (Volar) version v0.27.27 TypeScript Vue Plugin (Volar) version v0.27.27
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:11 (3 by maintainers)
Top Results From Across the Web
warning in vue-router 3.5.1: In Vue Router 4, the v-slot API will ...
It appears that you are using a <router-link> component with the event or tag property, and this will not work in Vue Router...
Read more >API Documentation | Vue Router
Creates a hash history. Useful for web applications with no host (e.g. file:// ) or when configuring a server to handle any URL...
Read more >vue-router - UNPKG
43, * handle any URL is not possible. 44, *. 45, * @param base - optional base to provide. Defaults to `location.pathname +...
Read more >Vue.js - The Blue Book
The message property will be made available in the template. ... v-model works not only on text inputs, but also other input types...
Read more >Routing & Navigation - ts - GUIDE - Angular
The Angular Router is an optional service that presents a particular component view for a given URL. It is not part of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed in https://github.com/johnsoncodehk/volar/commit/d587ab162cf09fe79cec5a0f22624870b7ca08c0, please wait for release or use 0.27.26 for now, thanks!
@innocenzi it’s fixed in #540.
Please keep this issue open, I will close when I release new version.
Creating
components.d.ts
fixed for me. (https://github.com/johnsoncodehk/volar#using)But I have a different error when
noPropertyAccessFromIndexSignature
is true.