Next.Js does not recognize api route #384
-
I have the frame setup in this route: src/app/api/[[...routes]]/route.tsx But on running localhost, I get a a blank page. src/app/api/[[...routes]]/route.tsx What am i missing? Versions: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, as for the first point, you'd get a blank page because frames are rendered as metatags along. As for the required types error, I have faced this a few times, I found that It most times had to do with imports. I'm not entirely sure what triggers it or not. One thing you could do which helped in those cases was regenerating a frog project from scratch and copying the code in while ensuring it works. That'll help you figure what triggers the error |
Beta Was this translation helpful? Give feedback.
Hello, as for the first point, you'd get a blank page because frames are rendered as metatags along.
To see the page, go to http://localhost:3000/api/dev
As for the required types error, I have faced this a few times, I found that It most times had to do with imports. I'm not entirely sure what triggers it or not. One thing you could do which helped in those cases was regenerating a frog project from scratch and copying the code in while ensuring it works. That'll help you figure what triggers the error