I am trying to make use of Three in angular 6 based application.
I import three in my ts file as:
import * as THREE from ‘three’;
And then I try to use OrbitControls as:
var controls = new THREE.OrbitControls(camera);
But it gives me error as:
TypeError: three__WEBPACK_IMPORTED_MODULE_1__.OrbitControls is not a constructor
Other things like Geometry, BufferGeometry, PerspectiveCamera etc have worked all right.
Are there any specific steps to be taken to use OrbitControls in angular 6?