TypeError: Cannot read properties of null (reading 'nodeType') (Astro + Svelte 5) #11888
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
pkg: svelte
Related to Svelte (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I am getting this error and my svelte component will not load at all. It works perfectly fine in dev environment but when I build or run preview it stops working and the error is thrown in the console.
faq/:1 [astro-island] Error hydrating /astro/FaqQuestion.B9nkJrIu.js TypeError: Cannot read properties of null (reading 'nodeType')
at Ut (template.BZob6Wd.js:1:8993)
at G (FaqQuestion.B9nkJrIu.js:1:1234)
at render.Eek01tEQ.js:1:1270
at Sn (template.BZob6Wd_.js:1:5360)
at U (template.BZob6Wd_.js:1:6097)
at k (template.BZob6Wd_.js:1:2186)
at bt (template.BZob6Wd_.js:1:2805)
at render.Eek01tEQ.js:1:1212
at Sn (template.BZob6Wd_.js:1:5360)
at U (template.BZob6Wd_.js:1:6097)
What's the expected result?
The component loads correctly with no errors
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-1mfzqq?file=astro.config.mjs
Participation
The text was updated successfully, but these errors were encountered: