svelte-datepicker icon indicating copy to clipboard operation
svelte-datepicker copied to clipboard

Cannot read properties of undefined (reading 'extend')

Open xpluscal opened this issue 3 years ago • 3 comments

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

xpluscal avatar Mar 16 '22 04:03 xpluscal

This issue is also occurring for me, same error. Also configured via svelte.config.js but still errors.

isaac-mcfadyen avatar Mar 19 '22 16:03 isaac-mcfadyen

Having the exact same error, and it usually works, but when HMR occurs with SvelteKit when a file is changed, the error is thrown 😕

Pierstoval avatar Apr 10 '22 09:04 Pierstoval

I have opened a PR, that hopefully fixes this.

riungemaina avatar Apr 18 '22 13:04 riungemaina