svelte-datepicker
svelte-datepicker copied to clipboard
Cannot read properties of undefined (reading 'extend')
I've updated the vite config to contain the ssr/noexternal/dayjs but I am errors on all files with the "extend" issue, see excertp below:
...
3:40:13 PM [vite] Error when evaluating SSR module /node_modules/@beyonk/svelte-datepicker/src/components/lib/context.js:
TypeError: Cannot read properties of undefined (reading 'extend')
at /node_modules/@beyonk/svelte-datepicker/src/components/lib/date-utils.js:7:7
This issue is also occurring for me, same error. Also configured via svelte.config.js but still errors.
Having the exact same error, and it usually works, but when HMR occurs with SvelteKit when a file is changed, the error is thrown 😕
I have opened a PR, that hopefully fixes this.