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

Error trying to use Group #175

Open
elaughli opened this issue Mar 20, 2018 · 2 comments
Open

Error trying to use Group #175

elaughli opened this issue Mar 20, 2018 · 2 comments

Comments

@elaughli
Copy link

elaughli commented Mar 20, 2018

I'm trying to add a Group containing some objects just like in the README, but I keep getting this error:

img_0027

Line 436 in ARView.js is

<ARKit.Group opacity={0.5} position={position} eulerAngles={eulerAngles}>

I've trying simplifying the example to use something like

<ARKit.Group>
  <ARKit.Cylinder
     position={{ x: 0.4, y: 0, z: 0 }}
     shape={{ radius: 0.05, height: 0.1 }}
   />
  <ARKit.Cylinder
     position={{ x: -0.4, y: 0, z: 0 }}
     shape={{ radius: 0.05, height: 0.1 }}
   />
</ARKit.Group>

but with the same error where using ARKit.Group

All other node types (that i've tested) work individually.

I'm using version 0.9.0, and I confirmed in my node_modules that all the ARGroup related files match those on the repo. I'm guessing it's user error at this point since #45 implies that it's been working for others, so if someone could point me in the right direction I'd appreciate it.

@macrozone
Copy link
Collaborator

@elaughli I think you need React 16.1, because we use the <Fragment /> for it. Check which version of react you are using.

@elaughli
Copy link
Author

The react version I'm using is 16.3.1, so I guess that isn't the issue. At least not for that reason.

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

2 participants