[ViroARSceneNavigator] Error: Requiring unknown module "undefined".
laurensius opened this issue · comments
Requirements:
- [ ✅ ] Review the docs
- [ ✅ ] Search for existing issues
- [ ✅ ] Use the latest ViroReact
Environment
- Development OS: MacOS Sonoma 14.2.1
- Device OS & Version: Android 11
- Version: ViroReact(2.40.1) and React Native(0.73.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](https://private-user-images.githubusercontent.com/283553/306508323-894168be-2841-4095-af08-6cebeaa6be5e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1NDA5OTUsIm5iZiI6MTcyMDU0MDY5NSwicGF0aCI6Ii8yODM1NTMvMzA2NTA4MzIzLTg5NDE2OGJlLTI4NDEtNDA5NS1hZjA4LTZjZWJlYWE2YmU1ZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwOVQxNTU4MTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00MTgwYTUwYjA3ZDIxNDI4MjUyNjYzMTQ0MmI1ZGZhM2UyYTA2MzE0MmQzZWY0ZjhmZWJhMDZkOGM4NDQxMjRjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ZF7bzTlNHhzbc9fzn-BjsMeBa_zDmvN-96q0MRL1I8U)
Closing in favor of reopening #267.