You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This probably needs a new issue as it's parameter based routes now, not route groups like #1463
Just got the RC1 installed, and this is still an issue, but it seems related to route params now, not route groups anymore. I narrowed it down some more to a route with a parameter in it.
import{APIEvent}from'@solidjs/start/server';exportasyncfunctionGET({ request }: APIEvent){console.log(`getting the thumbnail`);}
Navigate to anything like http://localhost:3000/viewer/abc
As long as that API route in there, there's a 500. As soon as thumbnail.tsx is removed, that route works.
I'm going to ask for a reproduction on this one. I have an example similar to this in the experiments and it seems to be working when I add an API route in it. I also tried to reproduce something what you shared and didn't have any issue. Only other thing I could think of is make sure your GET method returns something. We do pass through if it misses. Not sure if that is related but I'd start there. Having your console.log in your example didn't error for me though.. just returned an empty page.
Duplicates
Latest version
Current behavior 😯
This probably needs a new issue as it's parameter based routes now, not route groups like #1463
Just got the RC1 installed, and this is still an issue, but it seems related to route params now, not route groups anymore. I narrowed it down some more to a route with a parameter in it.
Expected behavior 🤔
should be able to access both routes
Steps to reproduce 🕹
Minimal repro is this structure:
Where
(viewer).tsx
is justand
thumbnail.tsx
isNavigate to anything like
http://localhost:3000/viewer/abc
As long as that API route in there, there's a 500. As soon as
thumbnail.tsx
is removed, that route works.Context 🔦
No response
Your environment 🌎
No response
The text was updated successfully, but these errors were encountered: