You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the tsx component, an error message is displayed: Property 'primitive' does not exist on type 'JSX.IntrinsicElements'. What should I do?
import{Canvas}from"@react-three/fiber";import{useGLTF,Stage,PresentationControls}from"@react-three/drei";functionModel(props:any){const{ scene }=useGLTF('/bmw.glb');return<primitiveobject={scene}{...props}/>;}exportdefault()=>{const{ scene }=useGLTF('/3d/laptop.glb');return(<><Canvasdpr={[1,2]}shadowscamera={{fov: 45}}style={{position: 'absolute'}}><PresentationControlsspeed={1.5}globalzoom={0.5}polar={[-0.1,Math.PI/4]}><Stageenvironment={'sunset'}><Modelscale={0.01}/></Stage></PresentationControls></Canvas></>);};
The text was updated successfully, but these errors were encountered:
This indicates there is something wrong with your install and TypeScript is not getting what it should. Could you share what your package.json looks like? You should also try deleting your node_modules folder and reinstalling, and finally restarting your TypeScript server.
In the tsx component, an error message is displayed: Property 'primitive' does not exist on type 'JSX.IntrinsicElements'. What should I do?
The text was updated successfully, but these errors were encountered: