Replies: 4 comments
-
Do you have a code sandbox you code provide that replicates your issue? |
Beta Was this translation helpful? Give feedback.
-
I tried once again right now, I restructured the components to avoid using the React.Fragment. It was indeed the React.Fragment issue. So I assume we can't use these inside Canvas? |
Beta Was this translation helpful? Give feedback.
-
No, you should be able to use fragments, mind making a reproduction on codesandbox? |
Beta Was this translation helpful? Give feedback.
-
making this a discussion for now - the error message is clear, there has got to be a <Canvas>
<div>this doesn't belong here</div>
</Canvas> the message tells you that there is no there are no limitations otherwise, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I'm learning R3F, but I can't seem to understand why this strange behavior happens. I have:
... <div className={classes.body}> <div id="" className={classes.view} > <View /> ...
and other component with all the Canvas related stuff:
This gives me this error:
"react-three-fiber.esm.js:1487 Uncaught Div is not part of the THREE namespace! Did you forget to extend?"
Why is this? I'm not even using a Div inside Canvas.... Am I missing some key concept here?
Is it because of the React.Fragment tag? What's the best practice?
Beta Was this translation helpful? Give feedback.
All reactions