export ‘OrbitControls‘ was not found in ‘three‘

在使用three时导入遇到问题,vue正确引入OrbitControls:

import * as THREE from "three"; //引入Threejs

import OrbitControls from 'three-orbitcontrols';

使用:new OrbitControls(camera,renderer.domElement);//创建控件对象

中文网那个 new THREE.OrbitControls(camera,renderer.domElement);是不行的,还是要参考官方文档,因为中文文档存在滞后。