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

TypeError: Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element'. #121

Closed
ryansegus opened this issue Apr 26, 2023 · 5 comments · Fixed by #136

Comments

@ryansegus
Copy link

Hello, I am trying to implement this plugin in a Nuxt 2 application and it keeps crashing when navigating from page to page, everything else works wonder.

I also see the same error on your examples pages inspecting the console.

I saw this issue #67 and I though I could use a destroy method myself but I don't think is going any further. Is there any way to avoid this error when navigating?

@weotch
Copy link
Member

weotch commented Apr 26, 2023

I think this issues was introduced in #120 ... can you try going back to 2.1.0 and see if that fixes the issue?

@weotch
Copy link
Member

weotch commented Apr 26, 2023

@mattaebersold are you seeing this issue on the project you wrote that PR for?

@mattaebersold
Copy link
Contributor

@weotch no I didn't

@ryansegus
Copy link
Author

ryansegus commented Apr 27, 2023

I did solved yesterday wrapping the slider in a div with a v-if, I will give a try downgrading to 2.1.0 and let you know.

<div v-if="slides.length">
   <SsrCarousel ref="carousel" :key="slides.length" show-arrows>
     ... slides and arrows templates here
   </SsrCarousel>
</div>

@ryansegus
Copy link
Author

I think this issues was introduced in #120 ... can you try going back to 2.1.0 and see if that fixes the issue?

Nothing, same error on this line return this.resizeObserver.observe(this.$el);

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.

3 participants