-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
useTranslation hook with Typescript issue #72
Comments
Found the issue, apologies |
I'm currently facing the same issue (only in Docker though, for some reason.) Could you share your solution, please? 🙂 |
Same issue, @LoLei found any solution yet? I get the error only when building the Nextjs project, not in dev-mode though. |
Just figured out downgrading |
I think I solved my case as well, first, to fix it in general, apply this solution: i18next/react-i18next#1601 (comment) The reason why it happens only in Docker, seems to be the version of Docker images of Running |
When I upgraded from 23.4.0 to 23.4.1, this error occurred in all places where the t function was used. How can I fix it? @LoLei @riccardolardi @paulconlin |
I encountered the following TypeScript error during compilation: ERROR in ./src/pages/login/index.tsx:39:19
Here's my "i18next": "^24.1.2", I upgraded TypeScript to: "typescript": "^5.7.2", After the upgrade, the error was resolved. Analysis:
Solution:If you encounter this issue, upgrading TypeScript to 5.x or later should resolve it. Alternatively, you could suppress the error by explicitly typing |
save my life |
I'm currently using i18next v19.1.0 and react-i18next 11.3.1 with Typescript v3.7.2
When passing in a string key to the t function from useTranslation(), it keeps saying -
I feel like I might just be missing something basic. Any ideas?
The text was updated successfully, but these errors were encountered: