-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Server HMR not working on Next.js v13 #137
Comments
Hi, thank you for reporting this issue. |
|
Cool, from the code snippets that you were posted looks like you are not configured the lib from next-with-next-i18next-v11 example, can you review the example and align your code with it? Specifically,
|
yes i fixed them but again the same issue |
Did you restart the next server? |
yes i restarted the server |
Can you prepare a small repository with your setup that reproduces the issue, I will debug it? |
Thanx, I'll review it asap |
I've tested your version, looks like there are 2 things wrong with i18next values, I need to check the reason for this. for a mean while, you can remove the server side HMR & use the built-in hack, export async function getServerSideProps({ locale }) {
return {
props: {
...(await serverSideTranslations(locale, ['common'], { reloadOnPrerender: process.env.NODE_ENV==='development' }))
// ------------------------------------------------------^ reloads on every page load
}
};
} or in the global config
I need more time to investigate the issue. |
Looks like it is an issue in Next v13... I've added a question here... |
I used this one practice
and when i update the translation json it correctly updates the translation with hmr but when i reload the page the translations go back to the file that loaded on server start so then i must close server and re-run it to load the updated translations or simply make one change to json file in order to reload it
The text was updated successfully, but these errors were encountered: