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

IntersectionObserver constructor error while using globally #25

Open
benoitlahoz opened this issue May 21, 2020 · 1 comment
Open

IntersectionObserver constructor error while using globally #25

benoitlahoz opened this issue May 21, 2020 · 1 comment

Comments

@benoitlahoz
Copy link

Working on a Nuxt custom module, I register globally the mixin in a plugin with Vue.mixin(inViewport)
When first loading my page with 3 components using the watcher I get this error:

IntersectionObserver constructor: Element of sequence branch of (double or sequence) is not a finite floating-point value.

If the webpack hot reloader rebundles the error disappears and it all works well...
Can't we use the mixin globally?

@weotch
Copy link
Member

weotch commented May 21, 2020

Huh, I've never tried it globally ... it could be an issue related to it being added to Nuxt page or layout components than perhaps don't have an $el when they are first mounted.

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