[...all] is in front of other routes in Vue 2 + Vue Router v3
kingyue737 opened this issue · comments
Describe the bug
I have file structure like:
├── pages
│ ├── [...all].vue
│ └── index.vue
When I visit localhost:5173, [...all].vue
is shown instead of index.vue
This bug seems only exist on Linux. On Windows, [...all]
is behind other routes.
Reproduction
https://stackblitz.com/edit/vitejs-vite-9bdfaz
System Info
System:
OS: Linux 5.0 undefined
CPU: (4) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 0 Bytes / 0 Bytes
Shell: 1.0 - /bin/jsh
Binaries:
Node: 16.14.2 - /usr/local/bin/node
Yarn: 1.22.10 - /bin/yarn
npm: 7.17.0 - /bin/npm
Used Package Manager
pnpm
Validations
- Follow the Code of Conduct
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A please open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.