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

Localized navigation doesn't work with too many pathnames (over 25) #1024

Closed
3 tasks done
rromikas opened this issue Apr 26, 2024 · 2 comments
Closed
3 tasks done

Localized navigation doesn't work with too many pathnames (over 25) #1024

rromikas opened this issue Apr 26, 2024 · 2 comments
Labels
bug Something isn't working unconfirmed Needs triage.

Comments

@rromikas
Copy link

rromikas commented Apr 26, 2024

Description

https://www.loom.com/share/0b91a87ede0f41cbb4080b64e887238f?sid=eb275de7-16e8-44ae-a00e-3af644af52e8

image

Verifications

  • I've verified that the problem I'm experiencing isn't covered in the docs.
  • I've searched for similar, existing issues on GitHub and Stack Overflow.
  • I've compared my app to a working example to look for differences.

Mandatory reproduction URL

https://github.com/rromikas/next-intl-issue

Reproduction description

  1. in /app/[locale]/page.tsx you should be able to see typescript error on router.push call.
  2. go to /navigation.ts and try to comment any 2 routes from pathnames object.
  3. Error gone
  4. https://www.loom.com/share/0b91a87ede0f41cbb4080b64e887238f?sid=6ead6d10-22c9-42d7-8dd1-5a44a96be915

Expected behaviour

Localized navigation should work no matter how many pathnames project uses.

@rromikas rromikas added bug Something isn't working unconfirmed Needs triage. labels Apr 26, 2024
@amannn
Copy link
Owner

amannn commented Apr 26, 2024

Thanks for the report! This has been reported in #726 previously and seems to unfortunately be a limitation in TypeScript. I'll close this in favor of the existing issue.

@amannn amannn closed this as completed Apr 26, 2024
@rromikas
Copy link
Author

Got it, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

2 participants