scholtz / qrcode-vue3

MIT License
86 stars 32 forks source link

TypeError: Cannot read properties of null (reading 'scope') #33

Open dnllromao opened 1 year ago

dnllromao commented 1 year ago

Hi! I've just installed your package and I've tried the basic example <QRCodeVue3 value="Simple QR code"/>. Unfortunately the error "TypeError: Cannot read properties of null (reading 'scope') at Ye (index.es.js:2271:12)" is thrown immediately. Maybe you could help me understand what's the issue. I'm running a Quasar application with Typescript. Thanks for your help.

const Ye = (e) => {
  On(e), e.scope.on(); // the error comes from where, since e = null
}, St = () => {
  Z && Z.scope.off(), On(null);
};
yys730 commented 1 year ago

same problem

newalway commented 1 year ago

same problem.

scholtz commented 1 year ago

I cannot reproduce this error..

I have created demo quasar app:

Source: https://github.com/scholtz/qrcode-quasar Runs at: https://scholtz.github.io/qrcode-quasar/

ltz1990 commented 1 year ago

same problem.

Charl12-gb commented 1 year ago

Même problème

xiaoai7904 commented 1 year ago
image

"vue": "^3.2.41",

same problem.

emu-de commented 1 year ago

Same problem here too

harriskhalil commented 1 year ago

anyone find the solution for this error?

emu-de commented 1 year ago

Didn't have time to try to make it work, so I simply switched to qrcode.vue It works right out of the box, and I didn't need too many options and features anyway...

YingchenWang999 commented 1 year ago

same problem.

mahmoudabdulmuty commented 1 year ago

same problem

nick-ma commented 1 year ago

same problem

huangrx-cn commented 11 months ago

same problem on vue@3.2.33

JimmyZDD commented 10 months ago

update vue: "vue": "^3.3.2", work for me

Roxi-3906 commented 10 months ago

update vue: "vue": "^3.3.2", work for me

same issue, didnt work for me

Homeeat commented 10 months ago

same issue

jdavidrsantos commented 9 months ago

I updated to vue": "^3.3.2" and it worked for me :)