Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'style' of undefined #58

Closed
dakshshah96 opened this issue Sep 5, 2018 · 2 comments
Closed

TypeError: Cannot read property 'style' of undefined #58

dakshshah96 opened this issue Sep 5, 2018 · 2 comments

Comments

@dakshshah96
Copy link

I have this in my Vue file:

<qrcode-reader @init="onInit" @decode="onDecode"></qrcode-reader>

I get the following error in my dev tools console:

TypeError: Cannot read property 'style' of undefined
    at VueComponent.unlockCameraLayerSize (vue-qrcode-reader.common.js?673c:1)
    at VueComponent.startPlayback (vue-qrcode-reader.common.js?673c:1)
    at VueComponent.eval (vue-qrcode-reader.common.js?673c:1)
    at r (vue-qrcode-reader.common.js?673c:1)
    at Generator.eval [as _invoke] (vue-qrcode-reader.common.js?673c:1)
    at Generator.t.(:8080/anonymous function) [as next] (webpack-internal:///./node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.common.js:1:39060)
    at r (vue-qrcode-reader.common.js?673c:1)
    at eval (vue-qrcode-reader.common.js?673c:1)
gruhn added a commit that referenced this issue Sep 6, 2018
Don't mess with layout calculation so much. Let CSS and Vue do
more of the work. It's way to hard to reason which DOM elements
are available at which point and have which size. Should fix some
null pointer exceptions.

See #58
@gruhn
Copy link
Owner

gruhn commented Sep 6, 2018

Please update to 1.2.1 and see if you still get errors.

@dakshshah96
Copy link
Author

@gruhn Thanks, this issue is fixed now 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants