Closed po4tion closed 1 year ago
Yes, the nextjs team removed support for the UrlObject
form for Link
with the app
directory. Are you using the pages
directory, the app
directory, or both in your project?
i'm using the app directory only.
Have you tried https://nextjs.org/blog/next-13-2#statically-typed-links? This library supports the pages
directory, but nextjs now ships typescript support for the app directory
Have you tried https://nextjs.org/blog/next-13-2#statically-typed-links? This library supports the
pages
directory, but nextjs now ships typescript support for the app directory
Thank you for your help. The "typed Routes" function works very well.
First, If you are considering this, I am sorry for registering the issue.
When I run the examples/app folder(nextjs version is 13.3.0), I get the following error.
Link: Next.js Error Occurred
If you go to the link provided above, next.js says that url mapping is no longer available for the app directory structure.
[example code]
I think we need to figure out a way to use it in the app directory of Next.js@13.
If there's anything I made a mistake, please give me some advice!