Skip to content
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

Cannot read properties of undefined (reading 'extend') #56

Open
xpluscal opened this issue Mar 16, 2022 · 3 comments · May be fixed by #57
Open

Cannot read properties of undefined (reading 'extend') #56

xpluscal opened this issue Mar 16, 2022 · 3 comments · May be fixed by #57

Comments

@xpluscal
Copy link

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

@isaac-mcfadyen
Copy link

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

@Pierstoval
Copy link

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

@riungemaina
Copy link

I have opened a PR, that hopefully fixes this.

Pierstoval added a commit to Orbitale/Compotes that referenced this issue Apr 18, 2022
Pierstoval added a commit to Orbitale/Compotes that referenced this issue Apr 18, 2022
Pierstoval added a commit to Orbitale/SvelteAdmin that referenced this issue Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants