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
Now that i18next's options provided are serialized as JSON and sent to the client, it effectively block non serializable values like functions. @zalcodementioned this in the Next.js 10 issue.
SerializableError: Error serializing `._nextI18Next.userConfig.overloadTranslationOptionHandler` returned from `getServerSideProps` in "/test".
Reason: `function` cannot be serialized as JSON. Please only return JSON serializable data types.
Expected behaviour
I expected i18next to be configured successfully no matter what types it accepts in its settings.
The text was updated successfully, but these errors were encountered:
Describe the bug
Now that i18next's options provided are serialized as JSON and sent to the client, it effectively block non serializable values like functions. @zalcode mentioned this in the Next.js 10 issue.
Occurs in next-i18next version
v8.0.0
Steps to reproduce
Provide a function value in i18next options like:
See an error while compiling:
Expected behaviour
I expected i18next to be configured successfully no matter what types it accepts in its settings.
The text was updated successfully, but these errors were encountered: