Open dohomi opened 6 months ago
I can't import the DatePickerElement
. Not sure if I'm doing something wrong?
Attached an example project using npm create vite@latest
to create a default React project.
can you upgrade to beta.3? Also make sure if you use ts to maybe change your tsconfig.json to moduleResolution: node16 | NodeNext
@dohomi Thanks upgrading to beta.3 resolved the issue. I didn't have to adjust the moduleResolution from its default value.
great, thanks for confirming 👍
can you upgrade to beta.3? Also make sure if you use ts to maybe change your tsconfig.json to
moduleResolution: node16 | NodeNext
None of those help me. This is my original tsconfig
{
"compilerOptions": {
"target": "es6",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"noUncheckedIndexedAccess": true,
"jsx": "react-jsx",
"baseUrl": "src"
},
"include": ["src", "test"]
}
I have been using this package for last couple of days in v7 but it has been only nightmare and frustration, along other bugs/issues. So many hours wasted. Unfortunately I recently upgraded MUI-X datepicker to v7 and i dont plan to go back to v6.
Please fix imports ASAP. For now i guess I will have to go with react-hook-form only.
with words like ASAP you won't move me anywhere - this is public code and nobody got paid to provide the codebase. You even didn't create a Codepen with your issue so what am I supposed to look into? Its obvious that there is an issue relies in your installation and package integration and your comment is zero help to identify what the issue might be.
Hi @dohomi , first of all, thanks for making this library! I was wondering about the releases and versions and if v7 would become the main release at some time? Asking because the versioning on npm has the latest as v7.0.1, but the github tags are missing for versions after tag "6.0.0", which makes it difficult to see what has changed in relation to which version.
@jbove-dd I havent found a good github tagging tool yet, thats why there isn't a reliable tagging of Github included. v7 is out for a while and the major changes are hightlighted above.
Duplicates
Latest version
Summary 💡
I released a new v7 beta with following breaking changes:
react-hook-form-mui/date-pickers
@mui/x-date-pickers
minimal version is raised to v7react-hook-form-mui/date-fns
is using v3 of date-fnsvalidation
alias and userules
prop of react-hook-formThe changed export of
date-pickers
hopefully reduces bundle size of integrations where a date picker is not part of the forms.In v6 there was an inconsistency on how to add validation rules, some component used a
validation
prop, some therules
prop. Thevalidation
prop is removed in all components and now therules
prop is used.Examples 🌈