question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

A 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 it index.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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JohnCampionJrcommented, May 5, 2021

Can you check with the new version from today if this is still an issue? It shouldn’t be.

0reactions
CharlesOkwuagwucommented, Apr 22, 2021

The issue still remains

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found