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
When bumping i18next version from 11.3.0 to 12.0.1 in our nextjs application we got a typing error on our app.tsx when using the the HOC appWithTranslation(MyApp). Ts complains that the default nextjs AppProps is missing SSRConfig. Looking at i18next types definitions we found out that the type augmentation was not being exported, so we needed to manually add:
type AppProps = NextJsAppProps & {
pageProps: SSRConfig;
};
into our app.tsx!
Environment
runtime version: nextjs 12.3.0
i18next version: 12.0.1
os: Mac
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
🐛 Bug
When bumping i18next version from 11.3.0 to 12.0.1 in our nextjs application we got a typing error on our app.tsx when using the the HOC appWithTranslation(MyApp). Ts complains that the default nextjs AppProps is missing SSRConfig. Looking at i18next types definitions we found out that the type augmentation was not being exported, so we needed to manually add:
into our app.tsx!
Environment
The text was updated successfully, but these errors were encountered: