ReactVision / viro

ViroReact: The AR and VR library for React Native 📳💙💛🤍💚

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ViroARSceneNavigator] Error: Requiring unknown module "undefined".

laurensius opened this issue · comments

Requirements:

  • [ ✅ ] Review the docs
  • [ ✅ ] Search for existing issues
  • [ ✅ ] Use the latest ViroReact

Environment

  1. Development OS: MacOS Sonoma 14.2.1
  2. Device OS & Version: Android 11
  3. Version: ViroReact(2.40.1) and React Native(0.73.4)
  4. Device(s): Realme 7i with Android 11 Ram 8GB

Description

When I tried to use ViroARSceneNavigator, an error occurred with the following description:

Error: Requiring unknown module "undefined". If you are sure the module exists, try restarting Metro. You may also want to run `yarn` or `npm install`., js engine: hermes 
    at ViroARSceneNavigator (http://localhost:8081/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.rnvirovromo&modulesOnly=false&runModule=true:128611:22)
    at App
    at RCTView
    at View (http://localhost:8081/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.rnvirovromo&modulesOnly=false&runModule=true:59759:43)
    at RCTView
    at View (http://localhost:8081/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.rnvirovromo&modulesOnly=false&runModule=true:59759:43)
    at AppContainer (http://localhost:8081/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.rnvirovromo&modulesOnly=false&runModule=true:59601:36)
    at RNViroVRomo(RootComponent) (http://localhost:8081/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.rnvirovromo&modulesOnly=false&runModule=true:110702:28)


TypeError: Cannot read property 'VIRO_VERSION' of undefined] 
    at ViroARSceneNavigator (http://localhost:8081/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.rnvirovromo&modulesOnly=false&runModule=true:128611:22)
    at App
    at RCTView
    at View (http://localhost:8081/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.rnvirovromo&modulesOnly=false&runModule=true:59759:43)
    at RCTView
    at View (http://localhost:8081/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.rnvirovromo&modulesOnly=false&runModule=true:59759:43)
    at AppContainer (http://localhost:8081/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.rnvirovromo&modulesOnly=false&runModule=true:59601:36)
    at RNViroVRomo(RootComponent) (http://localhost:8081/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.rnvirovromo&modulesOnly=false&runModule=true:110702:28)

Reproducible Demo

Screenshot 2024-02-20 at 11 46 03

Closing in favor of reopening #267.