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
I used Internationalization, and I tried to use it based on the example in the project https://github.com/vercel/next.js/tree/canary/examples/app-dir-i18n-routing
but when I use loading.tsx an error appears Hydration failed because the initial UI does not match what was rendered on the server.
how do I fix it?
if I only save the loading.tsx file in the [lang] folder, the loading does not appear
but if I save it outside the [lang] folder, the loading appears, but the error appears
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
I used Internationalization, and I tried to use it based on the example in the project https://github.com/vercel/next.js/tree/canary/examples/app-dir-i18n-routing
but when I use loading.tsx an error appears Hydration failed because the initial UI does not match what was rendered on the server.
how do I fix it?
if I only save the loading.tsx file in the [lang] folder, the loading does not appear
but if I save it outside the [lang] folder, the loading appears, but the error appears
loading.tsx
Beta Was this translation helpful? Give feedback.
All reactions