Material-ui-pickers: Can't resolve 'date-fns/addDays'

Created on 11 Apr 2018  路  2Comments  路  Source: mui-org/material-ui-pickers

./node_modules/material-ui-pickers/utils/date-fns-utils.js
Module not found: Can't resolve 'date-fns/addDays' in 'C:\FrontEnd\node_modules\material-ui-pickers\utils'

getting this error when trying to compile

Most helpful comment

@Peretz30 use date-fns 2.x, instead of 1.x

All 2 comments

Hey, did you fixed this issue? I had the same error.

@Peretz30 use date-fns 2.x, instead of 1.x

Was this page helpful?
0 / 5 - 0 ratings