Open shinokada opened 2 weeks ago
Shouldn't glob import be used in such cases?
Shouldn't glob import be used in such cases?
It's also an option but if you know that you just want to import a single file in an upper folder why bother with glob? Also if you remove parens it works so imho it's a bug in vite.
Describe the bug
I'm not sure if this is a bug. I use the following code for
[slug]
dir:I have exactly the same directories except one has a group routing:
dir-2
works butdir-1
returns the following error:Reproduction
Go to http://localhost:5173/dir-2/test to see it is working. Go to http://localhost:5173/dir-1/test to see the error.
Logs
No response
System Info
Severity
annoyance