Search code examples
reactjsmaterial-uidaterangepickerreact-datepicker

Material UI Date Range Picker not working


I went & copied the source code directly from material UI official website: Website Link

Installed all the required dependencies. Still the Project was not working. So tried the sandbox link for that snippet on the same official website. Sandbox Link

I am seeing soo many import dependencies error there too: Code Sandbox from the official website link

Then tried to install Pickers using their official website link: Picker Link

When I am trying to install it using NPM it is giving me an error: npm i @material-ui/pickers

I need to implement Date range picker on my project & everywhere i have used MUI as a standard.

How to resolve this? Is there any fix? Is there any working NPM version where I can implement this Date Range Picker on my project using Material UI ? Please help..!


Solution

  • Thank you for the solution @KcH The Answer is i have to install dayjs dependency & once done this component is working absolutely fine.