ViroARSampleApp
ViroARSampleApp copied to clipboard
Getting error when running this code
Hi, I have an issue when I'm trying to run this code. You can see the error below and it says that a file (vrx file which is a 3d Model) does not exists! but it exists in that place. I checked the code i saw that this exception is made when the program couldn't find the place of the object but the object is in that direction:
Loading dependency graph, done. error: bundling failed: Error: Unable to resolve module './js/res/coffee_mug/object_coffee_mug.vrx' from 'C:\Users\Ali\ReactNativeProjects\ViroMainProject - Copy\ViroARSampleApp\App.js': The module './js/res/coffee_mug/object_coffee_mug.vrx' could not be found from 'C:\Users\Ali\ReactNativeProjects\ViroMainProject - Copy\ViroARSampleApp\App.js'. Indeed, none of these files exist: 'C:\Users\Ali\ReactNativeProjects\ViroMainProject - Copy\ViroARSampleApp\js\res\coffee_mug\object_coffee_mug.vrx(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)' 'C:\Users\Ali\ReactNativeProjects\ViroMainProject - Copy\ViroARSampleApp\js\res\coffee_mug\object_coffee_mug.vrx\index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)'
My development OS is Windows10. The Device is Iphone7 and the iOS version is 11.3.1. ViroReact version is v2.3.0 and React Native version is 0.57.4.
Does anyone know anything? This is really important!! :)
Can you check to see if “vrx” is in your rn-cli.config.js file in the project root like this:
getAssetExts() { return ["obj", "mtl", "JPG", "vrx", "hdr", "gltf", "glb", "bin", "arobject", "gif"]; },
See Adding Asset Types in our docs -> https://docs.viromedia.com/docs/importing-assets
Can you check to see if “vrx” is in your rn-cli.config.js file in the project root like this:
getAssetExts() { return ["obj", "mtl", "JPG", "vrx", "hdr", "gltf", "glb", "bin", "arobject", "gif"]; },
See Adding Asset Types in our docs -> https://docs.viromedia.com/docs/importing-assets
Yeah "vrx" is in rn-cli.config.js file:
getAssetExts() { return ["obj", "mtl", "JPG", "vrx"]; },
The latest version of ViroReact is 2.11. You might want to upgrade your platform version
The latest version of ViroReact is 2.11. You might want to upgrade your platform version
ViroReact version is 2.11.0 now but the error still remains
Hey @lordaltair, 2 quick questions:
- Did you follow the setup instructions for Windows at https://docs.viromedia.com/docs/quick-start-windows?
- Viro React is only currently compatible and tested with React Native v0.55.1. If you would like to use ViroReact, please downgrade accordingly.
Thanks!
Hey @lordaltair, 2 quick questions:
- Did you follow the setup instructions for Windows at https://docs.viromedia.com/docs/quick-start-windows?
- Viro React is only currently compatible and tested with React Native v0.55.1. If you would like to use ViroReact, please downgrade accordingly.
Thanks!
- Yeah, I used the instructions.
- Downgrading the React Native to v0.55.1 fixed the problem!!! Thank You all so much!
I am having exactly the same issue for Android on Windows.
I have followed the quick start instructions and am running React Native v0.55.1 and ViroReact 2.12
Does anyone have any other suggestions?
@ajth789 we just released to ViroReact 2.13 (on 1/10) and this sample was updated for that release -> https://docs.viromedia.com/docs/releases
ViroReact 2.13 is now compatible with React Native v0.57.7
Hi @dam00n , I have the same problem with this thread. but I'm using these dependencies : "react": "16.8.3", "react-native": "0.59.3", "react-viro": "2.14.0"
Do I have to downgrade to v0.55.1?
I trying to run this on IOS, for android all good. Only IOS has a problem.
Please help me. Thank you
Still getting this error. Can this be updated to run with React 59.9? All the other Viro Media apps seem to work with 59.9