-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] Export of parseNonNullablePickerDate is missing #5916
Comments
I've failed to reproduce the mentioned issue. |
I can't reproduce it there , I used Vite , you have these files
and here in the @mui/x-date-pickers/internals/index.js export { parseNonNullablePickerDate } from './utils/date-utils';. is missing maybe problem here https://github.com/mui/mui-x/blob/master/packages/x-date-pickers/src/internals/utils/date-utils.ts ? in the beta.6 I saw you used export declare instead of export |
@HakobSargsyan I've created a working sandbox with latest pickers. |
Would you happend to run different version of
|
@flaviendelangle no both was "@mui/x-date-pickers-pro": "^5.0.0-beta.7", and "@mui/x-date-pickers": "^5.0.0-beta.7", in the package.json |
@LukasTy https://codesandbox.io/s/vite-react-mui-forked-z8y0uh?file=/src/App.jsx I remember this error, but I used AdapterLuxon , check sandbox example
You can mark the path "date-fns/locale/en-US" as external to exclude it from |
Oh for that one indeed I might have made a mistake instroducing |
Okay thanks @flaviendelangle , can it be related also wtih parseNonNullablePickerDate exception ? |
I am not familiar with Vite |
@HakobSargsyan I believe that it's just the difference in the error that is generated between builders. |
Yes I am using 5.0.0-beta.6 now , thank you for the support , I will wait for the new release @LukasTy |
Duplicates
Latest version
Current behavior 😯
When I used [5.0.0-beta.7] version , I got the import parseNonNullablePickerDate error , because it was called from /node_modules/@mui/x-date-pickers-pro/DateRangePicker/shared.js , but not exported in the index.js
Expected behavior 🤔
it should work
Steps to reproduce 🕹
import { LocalizationProvider } from '@mui/x-date-pickers-pro';
import { DateRangePicker } from '@mui/x-date-pickers-pro/DateRangePicker';
and use it with 5.0.0-beta.7 version
Context 🔦
No response
Your environment 🌎
npx @mui/envinfo
Order ID 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: