-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[BUG] - Type 'DateValue' is not assignable to type 'DateValue | null | undefined' #4243
Comments
Because NextUI and the upstream packages use different versions of dependencies and specify unique versions. The dependency "pnpm": {
"overrides": {
"@internationalized/date@^3.5.6": "^3.6.0",
"@react-types/shared@^3.23.0": "^3.26.0"
}
} There are still some duplicate packages with different versions, and their versions can also be specified. The complete overrides is as follows: "pnpm": {
"overrides": {
"@internationalized/date@^3.5.6": "^3.6.0",
"@react-aria/focus@^3.18.4": "^3.19.0",
"@react-aria/form@^3.0.8": "^3.0.11",
"@react-aria/i18n@^3.12.3": "^3.12.4",
"@react-aria/label@^3.7.12": "^3.7.13",
"@react-aria/link@^3.7.6": "^3.7.7",
"@react-aria/listbox@^3.13.5": "^3.13.6",
"@react-aria/menu@^3.15.5": "^3.16.0",
"@react-aria/overlays@^3.23.4": "^3.24.0",
"@react-aria/selection@^3.20.1": "^3.21.0",
"@react-aria/ssr@^3.9.6": "^3.9.7",
"@react-aria/textfield@^3.14.10": "^3.15.0",
"@react-aria/utils@^3.24.1": "^3.26.0",
"@react-aria/visually-hidden@^3.8.17": "^3.8.18",
"@react-stately/collections@^3.11.0": "^3.12.0",
"@react-stately/form@^3.0.5": "^3.1.0",
"@react-stately/list@^3.11.0": "^3.11.1",
"@react-stately/menu@^3.8.3": "^3.9.0",
"@react-stately/overlays@^3.6.11": "^3.6.12",
"@react-stately/toggle@^3.7.8": "^3.8.0",
"@react-stately/tree@^3.8.5": "^3.8.6",
"@react-stately/utils@^3.10.1": "^3.10.5",
"@react-types/button@^3.10.0": "^3.10.1",
"@react-types/calendar@^3.4.10": "^3.5.0",
"@react-types/checkbox@^3.8.4": "^3.9.0",
"@react-types/grid@^3.2.9": "^3.2.10",
"@react-types/link@^3.5.8": "^3.5.9",
"@react-types/menu@^3.9.12": "^3.9.13",
"@react-types/overlays@^3.8.10": "^3.8.11",
"@react-types/select@^3.9.7": "^3.9.8",
"@react-types/shared@^3.23.0": "^3.26.0",
"@react-types/textfield@^3.9.3": "^3.10.0"
}
} |
NextUI Version
2.6.2
Describe the bug
This is a controlled DatePicker
But there is an error on the line
value={date_of_birth}
Error:
The error was also causing an error with the same message during the build of my project.
So my temporary fix was to put a
@ts-ignore
above it.Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
DateValue
should be able to match withDateValue | null | undefined
? Or did I missed something?Expected behavior
It shouldn't be causing an error, right? I followed the example from the documentation. If I was wrong, please let me know what can I do.
Screenshots or Videos
No response
Operating System Version
Windows 11
Browser
Chrome
The text was updated successfully, but these errors were encountered: