I try to load .obj files in ionic2 with threejs,I had installed threejs and [three-obj-loader]
I require them like this:
import * as THREE from 'three'; import * as OBJLoader from 'three-obj-loader';
How can I use the OBJLoader in ionic2? When I try to do like the Usage [three-obj-loader]
OBJLoader(THREE); console.log(typeof THREE.OBJLoader);
The build script tell me:Property ‘OBJLoader’ does not exist on type ‘typeof THREE’.
I have no idea about this!I need some help!