Threejs is used in Vue to introduce error reporting problem of orbitcontrols

I checked many methods on the Internet, and all of them introduced the orbitcontrols in the example. However, these methods I use now report errors. The specific problem may be that the versions are different, and I don’t particularly study them in depth. At this moment, the method I use is to introduce three orbitcontrols, which can be tested by myself

import * as THREE from "three";
import { OrbitControls } from 'three-orbitcontrols-ts';


const controls = new OrbitControls(camera, renderer.domElement);

Note: many methods are temporarily feasible, more often need to verify!

Read More: