Skip to content

IntersectionObserver constructor error while using globally #25

@benoitlahoz

Description

@benoitlahoz

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions