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

t.v4.d.ts:189:47 - error TS1005: '?' expected #2152

Open
maxkomarychev opened this issue Mar 5, 2024 · 4 comments
Open

t.v4.d.ts:189:47 - error TS1005: '?' expected #2152

maxkomarychev opened this issue Mar 5, 2024 · 4 comments

Comments

@maxkomarychev
Copy link

maxkomarychev commented Mar 5, 2024

馃挜 Regression Report

A clear and concise description of what the regression is.

A project compiled with typescript 4.2.4 throws the following error:

node_modules/i18next/typescript/t.v4.d.ts:189:47 - error TS1005: '?' expected.

189     ? Key extends `${infer NKey extends number}`
                                                  ~

Last working version

The truth is I don't really know if it ever worked but I assume so based on similar issue in the past #2090

Worked up to version: X.X.X

Stopped working in version: Y.Y.Y

To Reproduce

Steps to reproduce the behavior:

// Paste your code here

Expected behavior

A clear and concise description of what you expected to happen.

// Paste the results here

Your Environment

  • runtime version: i.e. node 18
  • i18next version: i.e. 23.10.0 and 23.5.1
  • os: Mac
  • any other relevant information
@adrai
Copy link
Member

adrai commented Mar 5, 2024

update your TS version to be > v4.9.x

@sarakhosropour
Copy link

I have the same problem. No solution?

@adrai
Copy link
Member

adrai commented Apr 6, 2024

Provide a minimal reproducible example repository

@camilosw
Copy link

I have the same issue with typescript 4.3.5. After checking with multiple versions, I found that the minimum version to solve it is 4.7.x. I updated to 4.7.4 and now it works fine.

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

4 participants