Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library not working with the NextJS 13 app folder #167

Closed
byronthe123 opened this issue Aug 15, 2023 · 3 comments
Closed

Library not working with the NextJS 13 app folder #167

byronthe123 opened this issue Aug 15, 2023 · 3 comments

Comments

@byronthe123
Copy link

I was using this library with NextJS 13 using the pages folder and it worked perfectly. However, after changing to the new app folder, the routes in /ypes/nextjs-routes.d.ts are not being generated correctly. Here's an example of the output:

export type Route =
    | StaticRoute<"/">
    | StaticRoute<"/">
    | StaticRoute<"/">;
@tatethurston
Copy link
Owner

This package supports the pages directory, but nextjs ships typescript support for the app directory, which you can use instead of this package:

https://nextjs.org/blog/next-13-2#statically-typed-links?

@byronthe123
Copy link
Author

Thank you for the clarification.

@tatethurston
Copy link
Owner

Sure thing. If you notice any room for improvement over what Nextjs provides, let me know and I’ll consider adding app support.

This was referenced Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants