GithubHelp home page GithubHelp logo

Requiring module "node_modules/vision-camera-qrcode-scanner/src/index.ts", which threw an exception: TypeError: undefined is not a function, js engine: hermes about vision-camera-code-scanner HOT 6 CLOSED

rodgomesc avatar rodgomesc commented on June 30, 2024
Requiring module "node_modules/vision-camera-qrcode-scanner/src/index.ts", which threw an exception: TypeError: undefined is not a function, js engine: hermes

from vision-camera-code-scanner.

Comments (6)

rodgomesc avatar rodgomesc commented on June 30, 2024 1

i recommend at least reanimated 2.3-betha-2, 2.2.0 don't have an important PR of mrousavy, and you i'll experience a lot of issues.

from vision-camera-code-scanner.

robinsoncol avatar robinsoncol commented on June 30, 2024 1

The README.md example doesn't include import 'react-native-reanimated' so that might be tripping people up. The example shouldn't work without it...

from vision-camera-code-scanner.

rodgomesc avatar rodgomesc commented on June 30, 2024

make sure that you followed all installation steps for react-native-reanimated in installation instructions

from vision-camera-code-scanner.

averypelle avatar averypelle commented on June 30, 2024

@thanhnh-implvn I ran into the same issue today. @rodgomesc is right, this was a problem with react-native-reanimated's installation. More specifically, the following directions from their docs fixed this for me (from https://github.com/mrousavy/react-native-vision-camera/blob/main/docs/docs/guides/FRAME_PROCESSORS.mdx#what-are-frame-processors)

:::note Frame Processors require react-native-reanimated 2.2.0 or higher. Also make sure to add

import 'react-native-reanimated'
to the top of the file when using useFrameProcessor. :::

Note, you need to add this to the top of your index.js or index.ts file at the root of your app (NOT the file with useFrameProcessor - they need to clarify this in their docs). See in the example app in this repo https://github.com/rodgomesc/vision-camera-qrcode-scanner/blob/master/example/index.tsx

Hope this fixes your issue!

from vision-camera-code-scanner.

rodgomesc avatar rodgomesc commented on June 30, 2024

solved in #26,

0.1.6 is now available on npmjs

from vision-camera-code-scanner.

Bamorem avatar Bamorem commented on June 30, 2024

this error happen also on the https://www.npmjs.com/package/vision-camera-qrcode-scanner
can you fix the bug also on the QR code scanner ?

from vision-camera-code-scanner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.