Hacker0x01 / react-datepicker

A simple and reusable datepicker component for React

Home Page:https://reactdatepicker.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when installing dependencies

abarreau opened this issue · comments

Describe the bug
Using node 20.3.1 and yarn 3.3.0, when doing yarn install with react-datepicker@6.9.0 and @types/react-datepicker@6.2.0 I have the following error:

../node_modules/date-fns/index.d.ts(246,1): error TS1383: Only named exports may use 'export type'.
../node_modules/date-fns/types.d.ts(2,1): error TS1383: Only named exports may use 'export type'.
../node_modules/date-fns/types.d.ts(3,1): error TS1383: Only named exports may use 'export type'.

To Reproduce

  • Use node 20 and react-datepicker v6.9.0
  • Yarn install

Expected behavior
Installation should happen without errors.

Desktop (please complete the following information):

  • OS: Ubuntu 22.04

Thank you!