Closed bassem97 closed 2 years ago
Can I see the console messages?
Can you try rm -rf node_modules
and reinstall using npm install
instead of yarn? We are aware of some issues with yarn.
The blank screen is due to a change in @mui/lab
and utils.date
is no longer a function in the LocalizationProvider
.
To get it working with yarn
using latest @mui/x-date-pickers
packages, do the following:
Run these commands:
rm -rf node_modules && rm package-lock.json && yarn remove @mui/lab
yarn add @mui/x-date-pickers && yarn
Modify _app.js
:
// old:
import LocalizationProvider from '@mui/lab/LocalizationProvider';
import AdapterDateFns from '@mui/lab/AdapterDateFns';
// new:
import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
Then run yarn dev
and it should build/load successfully.
getting blank page when running