-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pickers] Error loading AdapterDateFns with date-fns v3 in vite: Missing "./_lib/format/longFormatters" specifier in "date-fns" package #12144
Comments
@jbaldassari We are supporting both |
How did we do @jbaldassari? |
Steps to reproduce
Link to live example: (required): https://stackblitz.com/edit/vite-react-ts-bzbymu?file=package.json
Steps:
package.json
referencesdate-fns
v3+Missing "./_lib/format/longFormatters" specifier in "date-fns" package [plugin vite:dep-pre-bundle]
CTRL+C
in terminaldate-fns
version inpackage.json
to2.30.0
npm i
in terminalnpm run dev
in terminalOther info:
pnpm
, but that doesn't seem to matter as the stackblitz example usesnpm
.react-scripts
(used by the MUI bug template stackblitz project), so I suspect the issue may be related to Vite's bundler. CRA is dead, so that's not really an option anyway.x-date-pickers
package.json
referencesdate-fns
^3.2.0
here, so I also tried that version, but got the same error.Current behavior
Expected behavior
Vite starts without errors
Context
Keeping dependencies up to date.
date-fns
released v3 in December 2023.Your environment
Chrome: Version 121.0.6167.184 (Official Build) (64-bit)
npx @mui/envinfo
Search keywords: [pickers] AdapterDateFns date-fns v3 vite
The text was updated successfully, but these errors were encountered: