Could not resolve "three"
node_modules/three-mesh-bvh/src/core/castFunctions.js:1:39:
1 │ import { Box3, Vector3, Matrix4 } from 'three';
╵ ~~~~~~~
You can mark the path "three" as external to exclude it from the bundle, which will remove this error.
AND HERE IS MY CODE...
import React, {Suspense, useEffect, useState} from 'react'
import { Canvas } from '@react-three/fiber';
import { OrbitControls, Preload, useGLTF } from '@react-three/drei';
import CanvasLoader from '../Loader';
const Computers = () => {
const computer = useGLTF('./desktop_pc/scene.gltf')
return (
<div>Computers</div>
)
}
export default Computers