Replies: 1 comment 3 replies
-
You cannot create DOM elements within a Canvas. Move the suspense boundary out: <div className="app">
<Suspense fallback={<div>loading</div>}>
<Canvas camera={{ position: [90, 120, 200], near: 1 }}>
<OrbitControls />
<ambientLight intensity={0.1} />
<pointLight position={[10, 10, 10]} />
<ambientLight intensity={0.1} />
<Model />
</Canvas>
</Suspense>
</div> |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 have a same problem #1561 .And i make a simple react project ,it works.But i put it into my project it does't work. I use the same code.
Here is my code.
Other error
Cannot read properties of undefined (reading 'inspector')
Beta Was this translation helpful? Give feedback.
All reactions