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.

Getting error on fresh hello-world-ng app: Can't find variable: QRCodeReaderDelegate

See original GitHub issue

I created a fresh app and installed the plugin, now getting

Jul 8 14:53:11 Mac-Pro mobile[47233]: 1 0xa025c -[TNSRuntime executeModule:] Jul 8 14:53:11 Mac-Pro mobile[47233]: 2 0x5203b main Jul 8 14:53:11 Mac-Pro mobile[47233]: 3 0x3cfda25 start Jul 8 14:53:11 Mac-Pro mobile[47233]: 4 0x1 Jul 8 14:53:11 Mac-Pro mobile[47233]: file:///app/tns_modules/nativescript-barcodescanner/barcodescanner.js:96:65: JS ERROR ReferenceError: Can't find variable: QRCodeReaderDelegate Jul 8 14:53:11 Mac-Pro com.apple.CoreSimulator.SimDevice.7B84929E-6CC8-4BC4-8002-D96E18C01083.launchd_sim[42146] (UIKitApplication:org.nativescript.mobile[0x741e][47233]): Service exited due to signal: Segmentation fault: 11

tns create mobile --template https://github.com/NativeScript/template-hello-world-ng

Added iOS platform and the nativescript-barcodescanner plugin then ran livesync in the emulator.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bnusseycommented, Sep 1, 2016

Hey all I was able to get around this issue by doing tns run ios --emulator as opposed to using tns livesync ios --emulator … you may need to do a tns platform remove ios and tns platform add ios before doing this. if that still doesn’t work, let me know.

0reactions
EddyVerbruggencommented, Sep 2, 2016

Thanks @bnussey I hope this info will be useful for others when they search the repo / Google for a similar issue 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

NativeScript iOS Delegate Transpilation error (Can't find variable
I solved this by cleaning up my typings. I just re-ran the command to generate typings: TNS_TYPESCRIPT_DECLARATIONS_PATH="$(pwd)/typings" ...
Read more >
ReferenceError: Can't find variabl… | Apple Developer Forums
Hi,. I am having this error in iphone . I am not able to figure out where it is coming from. I have...
Read more >
eddyverbruggen/nativescript-barcodescanner release history
Fixed bugs: BarcodeScanner crashes app in iOS 9.3 / iPad 2 #69 ... Getting error on fresh hello-world-ng app: Can't find variable: QRCodeReaderDelegate...
Read more >
nativescript-barcodescanner from EddyVerbruggen
Getting error on fresh hello-world -ng app: Can't find variable: QRCodeReaderDelegate. I created a fresh app and installed the plugin, now getting.
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