LoginSignup
0
1

More than 3 years have passed since last update.

Material UIの@material-ui/pickersで少しハマったので自分用に解決策を残しておく

Posted at

@material-ui/pickersを使う手順


1インストールする


npm i @material-ui/pickers

or

yarn add @material-ui/pickers



以下Documentより
Important: For material-ui-pickers v3 use v1.x version of @date-io adapters.
⇨material-ui-pickers v3の場合は、v1.xバージョンの@ date-ioアダプターを使用してください。
とのことです。



1インストールする


npm i @date-io/date-fns@1.x date-fns
// or
npm i @date-io/moment@1.x moment
// or
npm i -s @date-io/luxon@1.x luxon
// or
npm i -s @date-io/dayjs@1.x dayjs



自分はdate-fnsをインストールして無事material-uiを使用することに成功!パチパチ

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1