export ‘OrbitControls’ (imported as ‘THREE’) was not found in ‘three’
使用OrbitControls时警告,虽然页面没影响但是看着难受。
OrbitControls正确使用方式:
import * as Three from 'three'
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'
this.controls = new OrbitControls(this.camera, this.renderer.domElement);