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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error when running this code #7

Open
lordaltair opened this issue Nov 1, 2018 · 11 comments
Open

Getting error when running this code #7

lordaltair opened this issue Nov 1, 2018 · 11 comments

Comments

@lordaltair
Copy link

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)'

photo_2018-11-02_00-17-31

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.

@lordaltair
Copy link
Author

Does anyone know anything? This is really important!! :)

@dam00n
Copy link
Collaborator

dam00n commented Nov 8, 2018

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

@lordaltair
Copy link
Author

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"];
},

@dam00n
Copy link
Collaborator

dam00n commented Nov 9, 2018

The latest version of ViroReact is 2.11. You might want to upgrade your platform version

@lordaltair
Copy link
Author

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

@dthian
Copy link
Member

dthian commented Nov 10, 2018

Hey @lordaltair, 2 quick questions:

  1. Did you follow the setup instructions for Windows at https://docs.viromedia.com/docs/quick-start-windows?
  2. 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!

@lordaltair
Copy link
Author

Hey @lordaltair, 2 quick questions:

  1. Did you follow the setup instructions for Windows at https://docs.viromedia.com/docs/quick-start-windows?
  2. 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!

  1. Yeah, I used the instructions.
  2. Downgrading the React Native to v0.55.1 fixed the problem!!! Thank You all so much!

@ajth789
Copy link

ajth789 commented Jan 11, 2019

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?

@dam00n
Copy link
Collaborator

dam00n commented Jan 11, 2019

@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

@mrmub26
Copy link

mrmub26 commented May 15, 2019

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
WhatsApp Image 2019-05-15 at 6 28 20 PM

@Peege151
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants