huntabyte / shadcn-svelte

shadcn/ui, but for Svelte. ✨
https://shadcn-svelte.com
MIT License
4.99k stars 307 forks source link

Calendar: `Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'add')` in examples/main #1278

Open babakfp opened 1 week ago

babakfp commented 1 week ago

Describe the bug

https://github.com/user-attachments/assets/68c496b6-a961-4ec7-afa8-b52bbc5b8d02

I don't know why this happens. I was just playing around and it happened.

Reproduction

.

Logs

No response

System Info


  System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
    Memory: 8.05 GB / 15.84 GB
  Binaries:
    Node: 20.14.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.10.1 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.9.0 - ~\AppData\Local\pnpm\pnpm.CMD
  Browsers:
    Edge: Chromium (127.0.2651.74)

Severity

blocking all usage of shadcn-svelte

babakfp commented 1 week ago

I couldn't get the same error to happen in https://www.shadcn-svelte.com/docs/components/calendar