You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, tried you solution but got this error on build. Any thoughts?
Using node version ^16
Failed to compile.
./node_modules/i18next-fs-backend/esm/readFile.js
Dynamic Code Evaluation (e. g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Edge Runtime
Used by readFileSync, readFile
Learn More: https://nextjs.org/docs/messages/edge-dynamic-code-evaluation
Import trace for requested module:
./node_modules/i18next-fs-backend/esm/readFile.js
./node_modules/i18next-fs-backend/esm/index.js
./i18n/index.ts
Build failed because of webpack errors
The text was updated successfully, but these errors were encountered:
yeah this would happen if you try to use the t or any i18n functions in a client component. If you have use client in the component or a parent component, you will face this error.
I wouldn't call this repo as "solution", consider it just fiddling around trying Next 13 with i18n. The real solution should come from Next team here, vercel/next.js#41980
Hi, tried you solution but got this error on build. Any thoughts?
Using node version ^16
The text was updated successfully, but these errors were encountered: