question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property zxing of undefined

See original GitHub issue

Hey,

I am trying to use the barcode scanner module but I’m getting the error "Cannot read property zxing of undefined"

It probably has to do with me not importing the zxing library correctly. I downloaded the zxing core jar from http://central.maven.org/maven2/com/google/zxing/core/3.2.0/core-3.2.0.jar and added it to my NativeScript project under /app/lib/Android/core-3.2.0.jar

Is there anything I’m missing here? Thank you!

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
meirikocommented, Aug 20, 2016

One thing that helped me, remove the app from your phone and run the “tns run…” again, probably the re-installation is required for permissions.

0reactions
Mararesliucommented, Oct 12, 2015

use tns plugin add nativescript-barcodescanner on ios platform lib/ios will auto create on android platform not lib/android, ios can call scan android “Cannot read property zxing of undefined”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'stop' · Issue #399 · zxing-js/ngx-scanner
Describe the bug Even after a fresh installation after starting the scanner it works for around 3 Seconds and than stops working.
Read more >
Zxing scanner component: TypeError TypeError: Cannot read ...
I am using Zxing scanner and I get the error and the camera power off. There are some similar quiestions but the answers...
Read more >
nativescript-barcodescanner plugin had beed added, but ...
V/JS ( 1491): No scan: TypeError: Cannot read property 'zxing' of undefined. nativescript-barcodescanner plugin can not be prepared for android.
Read more >
nativescript-barcodescanner - npm
If you get the error TypeError: Cannot read property 'zxing' of undefined on android, try the following steps:.
Read more >
Cannot read property 'stop' of undefined - - Bountysource
Cannot read property 'stop' of undefined. zxing-js. 19 January 2021 Posted by Stefku. With @zxingjs/ngx-scanner 3.1.2. I integrated ngx-scanner in a simple ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found