-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[material-ui] Import error in Next.js #44590
Comments
Hi @ashishjaswal2002, please provide a working playground or repository so we can take a look. The PR description is not helpful in its current state. |
Looks like you need to install |
@aarongarciah yes i am following this guide.but i am getting an error of AppCache provider not found. |
The first step on https://mui.com/material-ui/integrations/nextjs/#installing-the-dependencies is to install |
Wait |
NOT WORKING |
Please, double check your code before opening or following up on issues. You have a typo in your latest commit: ashishjaswal2002/Materialuirepotesting@43a511a#diff-cd158e886cbb569ce897ddff3e4d29818b54947119242eefdf843f251696b7a3R2 |
Yeah Working Fine Thankyou @aarongarciah |
Steps to reproduce
Steps:
Current behavior
Module not found: Can't resolve '@mui/material-nextjs/v15-appRouter'
1 |
Expected behavior
No response
Context
Tech Stack NextJS
I am running this command in terminal
npm install @mui/material@latest @mui/icons-material@latest
`
import { AppRouterCacheProvider } from '@mui/material-nextjs/v15-appRouter';
import localFont from "next/font/local";
import "./globals.css";
const geistSans = localFont({
src: "./fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
});
const geistMono = localFont({
src: "./fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
});
export const metadata = {
title: "one7sportsAdminPanel_Frontend",
description: "Admin panel frontend.",
};
export default function RootLayout({ children }) {
return (
<body
className={
${geistSans.variable} ${geistMono.variable} antialiased
}>
{children}
);
}
`
Your environment
No response
Search keywords: Material ui
The text was updated successfully, but these errors were encountered: