sveltejs / svelte

Cybernetically enhanced web apps
https://svelte.dev
MIT License
77.45k stars 4.03k forks source link

[svelte 5] Error on child components #9634

Open CodexKI opened 7 months ago

CodexKI commented 7 months ago

Describe the bug

i have a created tippy adapter with components, but in the svelte 5 version this fails

Reproduction

https://stackblitz.com/edit/github-egurzx?file=src%2Fcomponents%2Fexample.svelte the cause of the fail is when i insert a component inside a element on i use "use:tippy"

Logs

No response

System Info

chunk-MJWO2U5N.js?v=8c007510:3562 ERR_SVELTE_HYDRATION_MISMATCH: Hydration failed because the initial UI does not match what was rendered on the server. TypeError: Illegal invocation
    at Module.sibling (chunk-MJWO2U5N.js?v=8c007510:186:41)
    at TippyExampleContent (tippyExampleContent.svelte:15:13)
    at tippy.svelte:16:38
    at Module.validate_dynamic_component (chunk-MJWO2U5N.js?v=8c007510:4756:22)
    at tippy.svelte:16:38
    at chunk-MJWO2U5N.js?v=8c007510:2538:11
    at execute_signal_fn (chunk-MJWO2U5N.js?v=8c007510:3849:7)
    at execute_effect (chunk-MJWO2U5N.js?v=8c007510:3961:31)
    at schedule_effect (chunk-MJWO2U5N.js?v=8c007510:4024:5)
    at internal_create_effect (chunk-MJWO2U5N.js?v=8c007510:4417:5)

Severity

blocking an upgrade

CodexKI commented 7 months ago

Describe the bug

i have a created tippy adapter with components, but in the svelte 5 version this fails

Reproduction

https://stackblitz.com/edit/github-egurzx?file=src%2Fcomponents%2Fexample.svelte the cause of the fail is when i insert a component inside a element on i use "use:tippy"

Logs

No response

System Info

chunk-MJWO2U5N.js?v=8c007510:3562 ERR_SVELTE_HYDRATION_MISMATCH: Hydration failed because the initial UI does not match what was rendered on the server. TypeError: Illegal invocation
    at Module.sibling (chunk-MJWO2U5N.js?v=8c007510:186:41)
    at TippyExampleContent (tippyExampleContent.svelte:15:13)
    at tippy.svelte:16:38
    at Module.validate_dynamic_component (chunk-MJWO2U5N.js?v=8c007510:4756:22)
    at tippy.svelte:16:38
    at chunk-MJWO2U5N.js?v=8c007510:2538:11
    at execute_signal_fn (chunk-MJWO2U5N.js?v=8c007510:3849:7)
    at execute_effect (chunk-MJWO2U5N.js?v=8c007510:3961:31)
    at schedule_effect (chunk-MJWO2U5N.js?v=8c007510:4024:5)
    at internal_create_effect (chunk-MJWO2U5N.js?v=8c007510:4417:5)

Severity

blocking an upgrade