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

clientHeight error on resourceTimeLine (Svelte 5) #370

Open
WoutPitje opened this issue Nov 3, 2024 · 1 comment
Open

clientHeight error on resourceTimeLine (Svelte 5) #370

WoutPitje opened this issue Nov 3, 2024 · 1 comment

Comments

@WoutPitje
Copy link

I get this error:

@event-calendar_resource-timeline.js?v=12892e86:223 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'clientHeight')
at Array. (@event-calendar_resource-timeline.js?v=12892e86:223:34)
at run_all (chunk-OC2HZMU7.js?v=12892e86:28:11)
at $effect (chunk-VBIQWZ5S.js?v=12892e86:2620:7)
at update_reaction (chunk-OC2HZMU7.js?v=12892e86:889:23)
at update_effect (chunk-OC2HZMU7.js?v=12892e86:980:21)
at flush_queued_effects (chunk-OC2HZMU7.js?v=12892e86:1051:7)
at flush_queued_root_effects (chunk-OC2HZMU7.js?v=12892e86:1039:7)
at flush_sync (chunk-OC2HZMU7.js?v=12892e86:1150:5)
at new Svelte4Component (chunk-3ES4SABR.js?v=12892e86:704:7)

Its thrown in here

 afterUpdate(() => {
  set(titleHeight, $_headerEl().clientHeight);
});

Does anyone know what i am doing wrong? Thanks in advance : )
@vkurko
Copy link
Owner

vkurko commented Nov 5, 2024

Can you provide a live demo please? CodeSandbox, StackBlitz, etc

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

No branches or pull requests

2 participants