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.

__scanCodes is not defined

See original GitHub issue

Help me, please !!!

  • This is my “babel.config.js”

plugins: [ [ 'react-native-reanimated/plugin', { globals: ['__scanQRCodes'], }, ], ],

  • i tried:

project.ext.react = [ enableHermes: false ] project.ext.react = [ enableHermes: true ] yarn start --reset-cache

  • All are not working.

  • react-native: 0.70.1
  • vision-camera-code-scanner: 0.2.0
  • Mac M1
  • Android Device

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:7

github_iconTop GitHub Comments

1reaction
nhatnguyen95commented, Dec 15, 2022

the issue happens on Android with typescript enabled.

  • “react-native”: “0.69.4”
  • “react-native-vision-camera”: “2.15.2”
  • “vision-camera-code-scanner”: "^0.2.0

Note: I updated react native to 0.70.6 and the issue is resolved

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReferenceError: Can't find variable: __scanCodes · Issue #79
rc file? I'm getting this error. ERROR ReferenceError: Can't find variable: __scanCodes ERROR Invariant Violation: Module AppRegistry is not a ...
Read more >
react native - Scan codes and error undefined is not an object
I would like to set up a scan for EAN13 codes, I am using the react-native-camera package but I ran into a **....
Read more >
Can't find variable: __scanCodes in React Native Vision Camera
ReferenceError: Can't find variable: __ scanCodes Please do like share and ... ERROR TypeError: undefined is not an object (evaluating ...
Read more >
Keyboard scancodes
1. Keyboard scancodes. The data from a keyboard comes mainly in the form of scancodes, produced by key presses or used in the...
Read more >
Get keyboard to map to "Unassigned" Scancodes - MSDN
The keyboard has tons of keys, well above the set that windows can ... but does nothing since that code is not defined...
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