对于该报错作者一开始以为全部引入three.js就已经可以了,查看官方文档发现还需引入
import { TrackballControls } from 'three/addons/controls/TrackballControls.js';
同时官网强调TrackballControls is an add-on, and must be imported explicitly
必须明确引入
对于该报错作者一开始以为全部引入three.js就已经可以了,查看官方文档发现还需引入
import { TrackballControls } from 'three/addons/controls/TrackballControls.js';
同时官网强调TrackballControls is an add-on, and must be imported explicitly
必须明确引入