-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Breaking change with <Trans> component in version 12.1.0 #1634
Comments
seems like, it loads 2 different react-i18next modules, the commonjs one and the es one... but the question is why? |
it picks this conditional export for require... Line 25 in 787b2f9
but why? |
adrai
added a commit
that referenced
this issue
Apr 24, 2023
try with react-i18next v12.2.2 |
It works! Thanks a lot for the quick fix ❤️ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug Report
When I upgrade to react-i18next v12.1.0 or superior (up to current version 12.2.1), I have this error using the component:
Uncaught Error: Trans(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.
To Reproduce
This repository contains a simple way to reproduce the issue: https://github.com/gamepark/board-game-template
Expected behavior
No breaking change in minor versions 😅
Your Environment
The text was updated successfully, but these errors were encountered: