dmtrKovalenko / date-io

Abstraction over common javascript date management libraries
MIT License
719 stars 90 forks source link

Class 'DateFnsUtils' incorrectly implements interface 'IUtils<Date>' #590

Closed iyinolu closed 2 years ago

iyinolu commented 2 years ago

Type 'DateFnsUtils' is missing the following properties from type 'IUtils': formats, lib, toJsDate, parseISO, and 14 more.

dmtrKovalenko commented 2 years ago

Please provide a reproduction with codesandbox

iyinolu commented 2 years ago

Reproducing on codesandbox works just fine without the error. But I get this error in my local dev environment ./node_modules/@material-ui/lab/node_modules/@date-io/date-fns/build/index.esm.js Module not found: Can't resolve 'date-fns/formatISO' in 'C:\{{WORK-DIR}}\node_modules\@material-ui\lab\node_modules\@date-io\date-fns\build'

I would appreciate your recomended possible fixes. Thanks.

dmtrKovalenko commented 2 years ago

This issue will be closed if you won't provide a reproduction.