When using vite-plugin-vue-layouts with vite-plugin-pages the combination of an index route and dynamic route doesn't work
See original GitHub issueA simple repro would be:
- Clone vitesse by antfu (or create a new github project by using this template)
- Create a new vue file below
~/src/pages/hi
and call itindex.vue
- Add a
<template/>
with some demo content - Run
npm run dev
- Try to open: http://localhost:3333/hi/
Observe how the dynamic route is being used instead of the newly created index route
Issue at vite-plugin-pages: https://github.com/hannoeru/vite-plugin-pages/issues/23
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Vue route with dynamic import causes default layout to flash ...
I have actually found an answer! It was caused by most examples on the internet not ever mentioning router.isReady() !
Read more >Static vs. dynamic routing: What is the difference? - TechTarget
Static routing and dynamic routing are two methods used to determine how to send a packet toward its destination. Static routes are configured...
Read more >Routing - Remix
Index Route - A route that shares the same URL as the parent route but ... Dynamic Segment - A segment of the...
Read more >React Router 6: Nested Routes - Robin Wieruch
A React Router tutorial which teaches you how to use Nested Routes with React Router 6. The code for this React Router v6...
Read more >File System Route API | Gatsby
To create collection routes, use curly braces ( { } ) in your filenames to signify dynamic URL segments that relate to a...
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
Can you check with the new version from today if this is still an issue? It shouldn’t be.
The issue still remains