-
-
Notifications
You must be signed in to change notification settings - Fork 1k
TS throw Type instantiation is excessively deep and possibly infinite
when there are loads of keys in Trans
component
#1394
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
Comments
Hey @Ambrozy, this is a typescript limitation/bug that happens in cases where people have more than 22 namespaces. I managed to suppress the error by using the following approach Just to give you an update, this limitation is being addressed in typescript 4.5, which they plan to officially release sometime in November. In the meantime, I'll look into your suggestion and test the results, thanks! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@pedrodurek Hi there! I tried to update a codebase from typescript 4.2.4 to 4.5.2 and the bug reappeared |
Hey @xseignard, have you tried to update the react-18next version? It may be related #1407 |
🐛 Bug Report
The same issue as: #1222
But appears in
Trans
component only.To Reproduce
A codesandbox example.
Expected behavior
No typescript errors
Your Environment
Solution
Remove K generic.
The text was updated successfully, but these errors were encountered: