Closed enoch-prince closed 2 years ago
This error could happen if you haven't installed a compatible version of the peer dependencies.
"name": "@date-io/date-fns",
"peerDependencies": {
"date-fns": "^2.0.0"
},
"peerDependenciesMeta": {
"date-fns": {
"optional": true
}
},
Older versions of date-fns
lack formatISO()
(also, it's not clear why this peer dependency is optional -- since it seems to be really important to the functioning of this package).
To fix this, you can install a newer version of date-fns
that has formatISO as a peer dependency of '@date-io/date-fns', e.g.:
$ npm install 'date-fns@^2.0.0'
Hi, I run into the this error and have been trying to find a solution for it for days now.
Below are my dependencies from my package.json
I used the same example for the DatePicker from the mui/lab documentation, but I got this error.
Node version - v14.17.0 NPM version - 8.3.0
Any clue on how to fix this?