monaco-react
monaco-react copied to clipboard
Error: Hydration failed because the initial UI does not match what was rendered on the server. See more info here: https://nextjs.org/docs/messages/react-hydration-error
Describe the bug A clear and concise description of what the bug is. Next.JS Shows this error
Error: Hydration failed because the initial UI does not match what was rendered on the server.
See more info here: https://nextjs.org/docs/messages/react-hydration-error
This is my code
if (typeof window !== "undefined") {
loader.init().then(async (monaco) => {
//set theme and stuff
})
}
- OS: Ubuntu Server 20.04.4 LTS
- Browser: Safari
- Version: Latest safari version (MacOS Ventura Public Beta 2)