-
Notifications
You must be signed in to change notification settings - Fork 248
Static build can't handle named path parameter #1223
Comments
hmm. After I edited it to use |
Actually, this is a limitation / bug ? (cc @MoOx) Assuming we have a package like this:
Case 1: using named parameterOn the route definition, we must use <Route
path="/keywords/:keywords"
component={KeywordDetailRoute}
/> Case 2: Using a star (*)I'm 99% sure that this is a bug. On this line the condition check I tried to remove the condition check and it works for my use cases, not sure if there is any consequences. |
Indeed, we do not do any magic to resolve a word to its plural version like it was in 0.x (tags => tag, category => categories - we were trying "y => ies" and "+s"). Indeed for meta we need the name (I think). Not sure what is the best to improve the situation. |
I have an idea for this. Workinf on a PoC |
I have a named parameter in a route like this one
It works flawlessly on dev mode build static build can't resolve it.
This is what the folder structure looks like:
If this is something that can't be analyzed during static build then we should warns user in dev mode.
The text was updated successfully, but these errors were encountered: