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

Type instantiation is excessively deep and possibly infinite. #4

Open
ndrxwsh opened this issue Apr 10, 2023 · 5 comments
Open

Type instantiation is excessively deep and possibly infinite. #4

ndrxwsh opened this issue Apr 10, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@ndrxwsh
Copy link

ndrxwsh commented Apr 10, 2023

hello faced with such a problem with my nextjs13 project and experimental app directory.
image

@Ayub-Begimkulov
Copy link
Owner

Hey Andrew, thanks for reporting this issue. Could please share your whole I18N setup and keys that you pass to it?

Cause from this screen I can't really now what might be the problem and how to reproduce it.

@ndrxwsh
Copy link
Author

ndrxwsh commented Apr 10, 2023

Okay, here is my provider in custom component, where i get the error
image
here is setup i18n exactly as in the documentation
image
en keys
image
ru keys
image
usually error occurred in the hook "useTranslateBase"
or in the I18NProvider

@Ayub-Begimkulov
Copy link
Owner

Yeah, I was able to reproduce this error. I'll look into it more deeply and try to fix tomorrow.

Thanks you very much for reporting an issue!

@Ayub-Begimkulov Ayub-Begimkulov added the bug Something isn't working label Apr 11, 2023
@Ayub-Begimkulov Ayub-Begimkulov self-assigned this Apr 11, 2023
@Ayub-Begimkulov
Copy link
Owner

Seems like with current API and parameters inferring that the library has, it's not possible to fix this issue. It most likely will require some changes not only in typings, but the API itself also.

I'll rollback latest inferring improvements and will try to come up with a better solution to this problem.

@Ayub-Begimkulov
Copy link
Owner

I just reverted inferParameterTypes option so that we avoid recursive type checking for now. Will try to think of a better solution, but for now no parameters inferring.

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

No branches or pull requests

2 participants