Skip to content

Guppy in .vue #198

@kubaPod

Description

@kubaPod

Hi, I am trying to integrate guppy in a quasar-js/vue project. My test component looks like this:

<template>
  <div>           
    <div id="guppy1" style="width:400px;"/>
  </div>
</template>

<script>

import Guppy from 'guppy-js/guppy.min.js'
export default {
    created () {   
        var g1 = new Guppy('guppy1')
    },
}
</script>

<style></style>

But I am getting an error:

vue.runtime.esm.js?5593:619 [Vue warn]: Error in created hook: "TypeError: Cannot set property 'tabIndex' of null"

found in

---> <Guppy> at src/components/Guppy.vue
       [...]
 

Which is most likely caused in
image

byt the fact that document is not available. What would be a proper way to handle this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions