ReactVision / viro

ViroReact: The AR and VR library for React Native πŸ“³πŸ’™πŸ’›πŸ€πŸ’š
MIT License
1.41k stars 164 forks source link

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

Closed laurensius closed 9 months ago

laurensius commented 9 months ago

Requirements:

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
linear[bot] commented 9 months ago

XR-178 [ViroARSceneNavigator] Error: Requiring unknown module "undefined".

robertjcolley commented 9 months ago

Closing in favor of reopening #267.