Open rohitmpatil-iprogrammer opened 1 month ago
"date-fns": "^2.30.0",
"date-fns-tz": "^3.1.3",
Upgraded to 3.6.0
and removed date-fns-tz
getting new error ./node_modules/date-fns/_lib/format/longFormatters/index.js Error: Failed to read source code from /home/rohit/Iprogrammer-projects/Auximtec/lc-admin/node_modules/date-fns/_lib/format/longFormatters/index.js
Caused by: No such file or directory (os error 2)
I also encountered a similar error, but it was resolved by updating date-fns to the latest version: 3.6.
I am using as
import { toZonedTime } from 'date-fns-tz' import { format, getTime, parseISO, formatDistanceToNow, differenceInSeconds } from 'date-fns';