-
Hello, I have committed and pushed my current status. It is accessible at this link. The branch is called "calendar-page". Description of the error: The error message is displayed in the browser immediately upon going to the "/calendar" page. Right when starting the Development Server. ERROR Displayed in Browser: Warning: Text content did not match. Server: "March 2024" Client: "März 2024" See more info here: https://nextjs.org/docs/messages/react-hydration-error Displayed in Console:
Uncaught Error: Text content does not match server-rendered HTML.
After research I think it is a mismatch between problem between server-rendered and client-rendered content based on internationalization problem. Maybe someone knows how to fix it? Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi there, one possible solution is to render the calendar component only on the client and change the import to this: import dynamic from "next/dynamic";
const Calendar = dynamic(
() => import("react-calendar"),
{ ssr: false } // This will only import `react-calendar` on the client-side
); Please see if this already does the trick and let me know otherwise. Best regards ✌️ |
Beta Was this translation helpful? Give feedback.
Hi there,
one possible solution is to render the calendar component only on the client and change the import to this:
Please see if this already does the trick and let me know otherwise.
Best regards ✌️