Comments (4)
Having same issue, please LMK as well,
Issue is Classname mismatch with the client and server. Every time Mui generates new classname which doesn't match with client side.
I'm following https://mui.com/material-ui/integrations/nextjs/ to start with Nextjs 14 (App router) and Mui v5 project
/app/layout.tsx
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import { AppRouterCacheProvider } from "@mui/material-nextjs/v14-appRouter";
import { ThemeProvider } from "@mui/material/styles";
import theme from "@/theme";
const inter = Inter({ subsets: ["latin"] });
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className={inter.className}>
<AppRouterCacheProvider>
<ThemeProvider theme={theme}>
{children}
</ThemeProvider>
</AppRouterCacheProvider>
</body>
</html>
);
}
from material-ui.
@sawa-ko I am not able to reproduce the issue in the CodeSandbox you provided. Also, did you take a look at this page: https://mui.com/material-ui/guides/server-rendering/?
from material-ui.
Hi @ZeeshanTamboli, thanks for reply, visit the /home route.
from material-ui.
I am opting out to take a look at this issue. Assigning it back to Jun.
from material-ui.
Related Issues (20)
- [docs] Change pnpm order, place second HOT 1
- Multilevel menu HOT 1
- [Select] Render options below Select's DOM position instead of in a portal HOT 2
- [RFC] Restructure icons exports HOT 2
- [SKELETON] [BUG] Skeleton Height is Unpredictable(Ghost Padding or Margin) Without `variant` Attribute HOT 1
- npm install @mui/styles ERROR HOT 2
- [joy-ui] Temperature check on the future of Joy UI
- [docs-infra] CodeSandbox/StackBlitz broken for demos with relative imports
- test #42499 HOT 1
- [docs] Random Unsplash photo URL is no longer functional HOT 2
- [docs] Add documentation for preventing SSR flicker/FOUC with the Next.js app router HOT 3
- sx prop not work HOT 1
- [v6] Module not found: DefaultPropsProvider/ InitColorSchemeScript HOT 8
- [joy-ui] When using styled('div') all its properties are lost
- bug: Preact example is throwing errors HOT 2
- [mui autocomplete] : label cut off when the option list is displayed above.
- @mui/material: incorrect responsiveFontSizes return type when using CssVarsTheme as input
- [RFC][Grid v2] Stabilize API HOT 4
- [docs][Grid v2] Restructure docs HOT 2
- & .MuiDataGrid-columnHeaders is not working with @mui/x-data-grid-pro": ^7.1.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-ui.