Closed kennyqiyenkan closed 2 months ago
looks like this vendor.founded
could be null
or undefined
@wingkwong, even when not using vendor.founded
and just using a string date, the type error persists.
sounds weird. can you setup a stackblitz project? I couldn't reproduce the issue on my side.
Okay, after some digging into @internationalized/date
and the specific error I am encountering, it turns out that because I am using the latest version of the package (3.5.4
), it conflicts with NextUI's version of the package(3.5.2
). After downgrading the @internationalized/date
package, the error goes away. Here is the link to the discussion.
Maybe updating the docs would suffice?
p/s: NextJS 14 did not like stackblitz 😅.
Thanks. I'll have a look tomorrow.
p.s. next14 uses swc and it fails in stackblitz. we use codesandbox for next14 apps.
NextUI Version
2.4.0
Describe the bug
Currently using:
"next": "^14.2.3"
"@internationalized/date": "^3.5.4"
Also referred to a previous Bug report but I am already type casting the
useState
.Code:
Other things of note:
yarn dev
yarn build
fails due to the errorYour Example Website or App
No response
Steps to Reproduce the Bug or Issue
NextUI
v2.4.0@internationalized/date
v3.5.4Expected behavior
Not expecting type errors
Screenshots or Videos
Operating System Version
macOS
Browser
Chrome