Skip to content

document is not defined in Nuxt, even if I use <client-only> #27

@radislaw

Description

@radislaw

I use vue-qr-reader in Nuxt project

<template>
  <client-only>
     <vue-qr-reader @code-scanned="getQrContent" />
  </client-only>
</template>

<script>
import VueQrReader from 'vue-qr-reader/dist/lib/vue-qr-reader.umd.js'
...

I have an error: document is not defined

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