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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

_NativeCameraModule.CameraModule.getLocationPermissionStatus is not a function (it is undefined)馃敡 #2889

Closed
4 of 5 tasks
Arun1989ninja opened this issue May 19, 2024 · 1 comment
Labels
馃敡 build error Issue is related to building VisionCamera in your project

Comments

@Arun1989ninja
Copy link

How were you trying to build the app?

I am using expo to build the app lication and i run npx expo start --dev-client to run the app

Full build logs

TypeError: _NativeCameraModule.CameraModule.getLocationPermissionStatus is not a function (it is undefined)

This error is located at:
    in Test (at AuthenticateQRCode.js:44)
    in RCTView (at View.js:116)
    in View (at AuthenticateQRCode.js:36)
    in AuthenticateQRCode (at SceneView.tsx:132)
    in StaticContainer
    in EnsureSingleNavigator (at SceneView.tsx:124)
    in SceneView (at useDescriptors.tsx:218)
    in RCTView (at View.js:116)
    in View (at Screen.tsx:63)
    in RCTView (at View.js:116)
    in View (at Background.tsx:13)
    in Background (at Screen.tsx:58)
    in Screen (at DrawerView.tsx:234)
    in RNSScreen (at createAnimatedComponent.js:54)
    in Unknown (at src/index.native.tsx:314)
    in Suspender (at src/index.tsx:27)
    in Suspense (at src/index.tsx:26)
    in Freeze (at src/index.native.tsx:206)
    in DelayedFreeze (at src/index.native.tsx:313)
    in InnerScreen (at src/index.native.tsx:566)
    in Screen (at ScreenFallback.tsx:39)
    in MaybeScreen (at DrawerView.tsx:227)
    in RNSScreenContainer (at src/index.native.tsx:398)
    in ScreenContainer (at ScreenFallback.tsx:30)
    in MaybeScreenContainer (at DrawerView.tsx:188)
    in RCTView (at View.js:116)
    in View (at Drawer.tsx:364)
    in RCTView (at View.js:116)
    in View (at createAnimatedComponent.tsx:579)
    in AnimatedComponent(View) (at createAnimatedComponent.tsx:596)
    in Unknown (at Drawer.tsx:363)
    in RCTView (at View.js:116)
    in View (at createAnimatedComponent.tsx:579)
    in AnimatedComponent(View) (at createAnimatedComponent.tsx:596)
    in Unknown (at Drawer.tsx:354)
    in PanGestureHandler (at Drawer.tsx:345)
    in Drawer (at DrawerView.tsx:261)
    in DrawerViewBase (at DrawerView.tsx:306)
    in RNGestureHandlerRootView (at GestureHandlerRootView.android.tsx:21)
    in GestureHandlerRootView (at DrawerView.tsx:305)
    in RNCSafeAreaProvider (at SafeAreaContext.tsx:92)
    in SafeAreaProvider (at SafeAreaProviderCompat.tsx:55)
    in SafeAreaProviderCompat (at DrawerView.tsx:304)
    in DrawerView (at createDrawerNavigator.tsx:128)
    in PreventRemoveProvider (at useNavigationBuilder.tsx:718)
    in NavigationContent (at useComponent.tsx:35)
    in Unknown (at createDrawerNavigator.tsx:127)
    in DrawerNavigator (at App.js:40)
    in EnsureSingleNavigator (at BaseNavigationContainer.tsx:433)
    in BaseNavigationContainer (at NavigationContainer.tsx:132)
    in ThemeProvider (at NavigationContainer.tsx:131)
    in NavigationContainerInner (at App.js:39)
    in App (at withDevTools.js:18)
    in withDevTools(App) (at renderApplication.js:57)
    in RCTView (at View.js:116)
    in View (at AppContainer.js:127)
    in RCTView (at View.js:116)
    in View (at AppContainer.js:155)
    in AppContainer (at renderApplication.js:50)
    in main(RootComponent) (at renderApplication.js:67), js engine: hermes

Project dependencies

{
  "name": "qrscanner",
  "version": "1.0.0",
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo run:android",
    "ios": "expo run:ios",
    "web": "expo start --web"
  },
  "dependencies": {
    "@react-native-masked-view/masked-view": "0.3.0",
    "@react-navigation/drawer": "^6.6.15",
    "@react-navigation/native-stack": "^6.9.26",
    "axios": "^1.6.8",
    "expo": "~50.0.14",
    "expo-dev-client": "~3.3.11",
    "expo-status-bar": "~1.11.1",
    "react": "18.2.0",
    "react-native": "0.73.6",
    "react-native-fs": "^2.20.0",
    "react-native-gesture-handler": "~2.14.0",
    "react-native-reanimated": "~3.6.2",
    "react-native-safe-area-context": "4.8.2",
    "react-native-screens": "~3.29.0",
    "react-native-vector-icons": "^10.0.3",
    "react-native-vision-camera": "4.0.4",
    "react-native-webview": "13.6.4",
    "react-native-worklets-core": "^0.4.0"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0"
  },
  "private": true
}

VisionCamera Version

4.0.4

Target platforms

Android

Operating system

Windows

Can you build the VisionCamera Example app?

I didn't try (鈿狅笍 your issue might get ignored & closed if you don't try this)

Additional information

@Arun1989ninja Arun1989ninja added the 馃敡 build error Issue is related to building VisionCamera in your project label May 19, 2024
@Arun1989ninja
Copy link
Author

It is closed as the build is not done properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃敡 build error Issue is related to building VisionCamera in your project
Projects
None yet
Development

No branches or pull requests

1 participant