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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught SyntaxError: Unexpected token #2302

Closed
crackAsmiles opened this issue Oct 11, 2024 · 7 comments
Closed

Uncaught SyntaxError: Unexpected token #2302

crackAsmiles opened this issue Oct 11, 2024 · 7 comments

Comments

@crackAsmiles
Copy link

index.js?1ad7:687 Uncaught SyntaxError: Unexpected token '=' at Object../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-i18next/dist/es/context.js (_app.js:3465) at Object.options.factory (webpack.js:675) at webpack_require (webpack.js:37) at fn (webpack.js:330) at eval (VM1851 Trans.js:8) at Module../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-i18next/dist/es/Trans.js (_app.js:3432) at Module.options.factory (webpack.js:675) at webpack_require (webpack.js:37) at fn (webpack.js:330) at eval (VM1850 index.js:26) at Module../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-i18next/dist/es/index.js (_app.js:3498) at Module.options.factory (webpack.js:675) at webpack_require (webpack.js:37) at fn (webpack.js:330) at eval (VM1849 index.js:11) at Module../node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/next-i18next/dist/esm/index.js (_app.js:72) at Module.options.factory (webpack.js:675) at webpack_require (webpack.js:37) at fn (webpack.js:330) at eval (_app.tsx:8) at Module../src/pages/_app.tsx (_app.js:2827) at Module.options.factory (webpack.js:675) at webpack_require (webpack.js:37) at fn (webpack.js:330) at eval (?7952:5) at eval (route-loader.js?2cce:234)

🐛 Bug Report

I encountered this issue in an Android WebView. How can I resolve it?

Your Environment

  • nextjs 14.1.3
  • next-i18next 15.3.1
  • os Android System WebView 83.0.4103.106 (arm64-v8a + arm-v7a) (Android 5.0+)
@adrai
Copy link
Member

adrai commented Oct 11, 2024

Does it work with react-i18next < 15 ?

@crackAsmiles
Copy link
Author

When i use next-i18next < 12.1.0 it work, but not work 15

@adrai
Copy link
Member

adrai commented Oct 11, 2024

can you keep next-i18next on v15.3.1
and react-i18next on v14.1.3

@adrai
Copy link
Member

adrai commented Oct 11, 2024

//cc @VIKTORVAV99

@adrai
Copy link
Member

adrai commented Oct 11, 2024

@VIKTORVAV99
Copy link

You should be transpiling your code or pinning the dependencies to support older versions of browsers. This is not a library or package issue IMO.

@adrai
Copy link
Member

adrai commented Oct 12, 2024

can you keep next-i18next on v15.3.1 and react-i18next on v14.1.3

@crackAsmiles out of curiosity, can you also try with react-i18next v15.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants