-
-
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
Error with import { initReactI18next } from "react-i18next" #1797
Comments
Facing same issue, getting errors at launch. Only occur in Android, iOS was fine.
Notice that nullish coalescing was introduced in |
@VIKTORVAV99 here another one ;-) |
I would recommend that everyone that needs to support a specific device or set of devices do so by configuring their build tool so it transforms or transpiles the code so it's compatible with that device. It's unreasonable to expect that packages stick with obsolete syntax when it would only affect a tiny subset of the users. |
Got fixed by downgrading to v14.1.3 |
@anniewey @pariharkaran did you try v15.0.3 ? |
@adrai din try v15.0.3 but i managed to get past the error using |
🐛 Bug Report
Error with import { initReactI18next } from "react-i18next";
Whenever I refer (Import {Initreacti18Next} from "React-i18Next";) The following error appears "Unexpect token '?'". .The same happens if I refer to (Import {Usetranslation} from 'React-i18Next';).
I tried everything, clean cache, node, and even started another project and this mistake does not disappear, someone Can you help me?
To Reproduce
React Native
Expected behavior
A clear and concise description of what you expected to happen.
// Paste the expected results here
Your Environment
"react": "17.0.2",
i18next": "^23.14.0"
openjdk-11.0.14.1_1
The text was updated successfully, but these errors were encountered: