DEV Community

SuvamRay
SuvamRay

Posted on

export 'Canvas' (imported as 'Canvas') was not found in '@react-three/drei'

I am successfully install @react-three/drei, "@react-three/fiber and three .

import {React,Suspense,useEffect,useState} from 'react'
import {Canvas} from '@react-three/drei'
import { OrbitControls,Preload,useGLTF } from '@react-three/drei'
import CanvasLoader from '../Loader'
const Computers = () => {
  const computer=useGLTF('./desktop_pc/scene.gltf');
  return (
    <mesh>
      <hemisphereLight intensity={0.15} groundColor="black"/>
      <pointLight intensity={1}/>
      <primitive object={computer.scene}/>

    </mesh>
  )
}
const ComputersCanvas=()=>{

Top comments (0)