gruhn / vue-qrcode-reader

A set of Vue.js components for detecting and decoding QR codes.
https://gruhn.github.io/vue-qrcode-reader
MIT License
2.03k stars 330 forks source link

Vue 3 - Quasar v2.1.0: components dont render #263

Closed luntovsky closed 11 months ago

luntovsky commented 2 years ago

Describe the bug vue-qrcode-reader was running fine on quasar v1.9.6 (vue 2) after updating to quasar v2.1.0 (vue 3) vue-qrcode-reader wouldn't render components QrcodeStream, QrcodeDropZone and QrcodeCapture despite having installed release "3.1.0-vue3-compatibility.2" of vue-qrcode-reader.

To Reproduce Sry couldn't build a min.js file of 3.1.0-vue3-compatibility.2 release to include in jsFiddle. Here are all the steps to reproduce the issue. Install Quasar:

npm install -g @quasar/cli

Create new Quasar V2 Project:

quasar create qrcode-test

confirm everything with enter, until creation process has started:

cd qrcode-test
yarn add vue-qrcode-reader@3.1.0-vue3-compatibility.2
quasar dev

import and muont vue-qrcode-reader inside src/pages/Index.vue:

<template>
  <q-page class="flex flex-center">
    <QrcodeStream />
  </q-page>
</template>

<script>
  import { defineComponent } from 'vue';
  import { QrcodeStream } from 'vue-qrcode-reader'

  export default defineComponent({
    name: 'PageIndex',
    components: { QrcodeStream }
  })
</script>

Screenshots image image

Desktop

mila76 commented 2 years ago

I used https://www.npmjs.com/package/vue3-qrcode-reader and work correctly

github-actions[bot] commented 11 months ago

This issue has been marked as stale. If there is no further activity it will be closed.