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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

23.7.13 -> 23.7.14 Regression with 'Type instantiation is excessively deep and possibly infinite' #2154

Open
harry-gocity opened this issue Mar 7, 2024 · 3 comments

Comments

@harry-gocity
Copy link

harry-gocity commented Mar 7, 2024

馃挜 Regression Report

I'm using next-i18next in a project with 7 namespaces. In upgrading that from 15.0.0 to 15.2.0 I started to see Type instantiation is excessively deep and possibly infinite with my useTranslation call.

I have narrowed this down to the underlying i18next dependency bumping from 23.7.13 -> 23.7.14. The issue persists with a bump to latest 23.10.0.

Last working version

Worked up to version: 23.7.13

Stopped working in version: 23.7.14

To Reproduce

I've tried to create a reproduction of this but have been unable to so far - but will keep trying to narrow down the issue. Sorry, I appreciate this isn't very helpful right now.

Expected behaviour

Type definitions to work as before.

Your Environment

  • runtime version: Node 20 LTS
  • i18next version: See above
  • os: Mac
  • any other relevant information

I saw from the release notes that the release was intended to fix types for array access. Are there any examples translation json structures that would be parsed differently before / after this release?

@adrai
Copy link
Member

adrai commented Mar 7, 2024

We really need a minimal reproducible example...
This was the change: #2101
//cc @marcalexiei @Gotos

@Gotos
Copy link
Contributor

Gotos commented Mar 7, 2024

Just as a heads-up: I'm currently sick and will likely not be able to look into this myself for at least a couple weeks; but as both of you correctly pointed out already anyway: without a minimal reproducible example, this is probably next to impossible to debug, anyway... :(

@harry-gocity
Copy link
Author

Yep, I completely agree, I'll get a reproduction sorted. I don't expect help from maintainers until then, fwiw

@adrai adrai added the stale label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants