-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Cannot read properties of undefined (reading 'call') #15104
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
Comments
A reproduction is required, yes. |
Repro: Error happens in JSDom, throws same error as happy-dom , but since stackblitz has node v18, JSDom would fail with non svelte related issue. Test passes in plain |
I was getting this problem when I installed |
@Gbps Thanks for writing. Astro doesn't use SvelteKit, just Svelte alone but maybe there's culprit in |
@Conduitry pinging since repro is provided. |
reproduce step:
it's worked fine before, I guess something happens with the latest daisyui or vite |
I also have this problem from time to time. For me it helps to delete my node_modules and .svelte-kit folder and reinstall all dependencies. It happens sporadically during development. I also use tailwind and daisyui. But I'm sure it happened with the old versions too. |
Describe the bug
It works in browser and Astro's
npm run dev
.I'm getting this error when trying to test with Vitest of Astro page with svelte file.
Reproduction
If required then later might try to repro. Its big page with runes, functions passed as props and template.
EDIT:
https://stackblitz.com/edit/github-ch9tapzs?file=test%2Fhappy-dom-env.test.ts&on=stackblitz
After dependencies install, stop npm in terminal and run
npm run test
Logs
System Info
Severity
blocking all usage of svelte
The text was updated successfully, but these errors were encountered: