在使用three.js中的OrbitControls.js时import three主库时,显示无法从主库中引用。
import { EventDispatcher, MOUSE, Quaternion, Spherical, TOUCH, Vector2, Vector3 } from './three.min.js';
这其中所有都无法引用,但是我去查了three.js主库,是有这些接口的。
你这个模块你安装了吗